Re: s6-rc how to log oneshot services

From: Laurent Bercot <ska-supervision_at_skarnet.org>
Date: Tue, 07 Mar 2023 19:00:49 +0000

>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
Received on Tue Mar 07 2023 - 20:00:49 CET

This archive was generated by hypermail 2.4.0 : Tue Mar 07 2023 - 20:01:19 CET