>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