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: "Carlos Eduardo" <carana2099@gmail.com>,
	"Daniel Barlow" <dan@telent.net>
Cc: supervision@list.skarnet.org
Subject: Re: s6-rc how to log oneshot services
Date: Tue, 07 Mar 2023 19:00:49 +0000	[thread overview]
Message-ID: <ema72efde1-4702-45ff-a20f-459a4d223214@66744539.com> (raw)
In-Reply-To: <CAN09Kn+B6J4UV1parstTUMynBM6ASGY8R6Ar_BoVMT3h1aJtiA@mail.gmail.com>

>Artix Linux achieves this with
>
>pipeline -dw { s6-log ... } actual-oneshot
>
>Not ideal due to the lack of supervision for s6-log, but it works.

  Yes, it works. The lack of supervision doesn't matter here because
the s6-log is short-lived: it will die when actual-oneshot exits. The
main drawback here is that it's overengineered: chances are that
actual-oneshot is not going to write enough data to trigger a rotation,
so directly appending to a file would be simpler and faster.

  Additionally, the -d option to pipeline isn't necessary: unless
actual-oneshot does very suspicious things, it shouldn't notice it
has a child (which will outlive it by a few microseconds).

--
  Laurent


      reply	other threads:[~2023-03-07 19:00 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-07 10:45 Daniel Barlow
2023-03-07 11:53 ` Alex Kiernan
2023-03-07 15:06   ` Laurent Bercot
2023-03-07 17:17 ` Carlos Eduardo
2023-03-07 19:00   ` 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=ema72efde1-4702-45ff-a20f-459a4d223214@66744539.com \
    --to=ska-supervision@skarnet.org \
    --cc=carana2099@gmail.com \
    --cc=dan@telent.net \
    --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).