From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=MAILING_LIST_MULTI autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 15015 invoked from network); 7 Mar 2023 19:00:52 -0000 Received: from alyss.skarnet.org (95.142.172.232) by inbox.vuxu.org with ESMTPUTF8; 7 Mar 2023 19:00:52 -0000 Received: (qmail 4161 invoked by uid 89); 7 Mar 2023 19:01:16 -0000 Mailing-List: contact supervision-help@list.skarnet.org; run by ezmlm Sender: Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Received: (qmail 4154 invoked from network); 7 Mar 2023 19:01:16 -0000 From: "Laurent Bercot" To: "Carlos Eduardo" , "Daniel Barlow" Subject: Re: s6-rc how to log oneshot services Cc: supervision@list.skarnet.org Date: Tue, 07 Mar 2023 19:00:49 +0000 Message-Id: In-Reply-To: References: <87edq0suut.fsf@telent.net> Reply-To: "Laurent Bercot" User-Agent: eM_Client/9.2.1577.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable >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