supervision - discussion about system services, daemon supervision, init, runlevel management, and tools such as s6 and runit
 help / color / mirror / Atom feed
From: "Laurent Bercot" <ska-supervision@skarnet.org>
To: "supervision@list.skarnet.org" <supervision@list.skarnet.org>
Subject: Re: where is the right place to run s6-rc from ?
Date: Sun, 19 May 2019 23:12:47 +0000	[thread overview]
Message-ID: <em54a1dc45-a7a3-4a9a-8966-6ed387a603b8@elzian> (raw)
In-Reply-To: <20190519212334.GI4861@panda>

>but when using such a catch-all logger to log s6-svscan's own output
>there is no need for the "rc" service to have its own logger since
>everything it outputs goes into this catch-all logger.

That's the end goal. That's what s6-linux-init-1.0.0.0 does.
What you call the "rc" service is named "runleveld" in s6-linux-init,
and it is just a service spawning a "s6-rc -pu change" process with
the argument you give to the telinit command. Its output naturally
goes to the catch-all logger.

Manual invocations of s6-rc are of course possible, in which case
the output will go to the user's terminal. runleveld is only
involved at boot time (well, not really, but the "runlevel" script,
that invokes the service manager, is spawned with the same
environment) and shutdown time, and on telinit invocation.

--
Laurent



      reply	other threads:[~2019-05-19 23:12 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-05-19 21:23 Jeff
2019-05-19 23:12 ` Laurent Bercot [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=em54a1dc45-a7a3-4a9a-8966-6ed387a603b8@elzian \
    --to=ska-supervision@skarnet.org \
    --cc=supervision@list.skarnet.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).