From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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: from alyss.skarnet.org (alyss.skarnet.org [95.142.172.232]) by inbox.vuxu.org (Postfix) with SMTP id 7F9BB216B1 for ; Mon, 2 Dec 2024 20:37:55 +0100 (CET) Received: (qmail 55667 invoked by uid 89); 2 Dec 2024 19:38:21 -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 55659 invoked from network); 2 Dec 2024 19:38:21 -0000 From: "Laurent Bercot" To: "Paul Sopka" , "supervision@list.skarnet.org" Subject: Re: Have s6-svscan send SIGTERM to one logger Date: Mon, 02 Dec 2024 19:37:49 +0000 Message-Id: In-Reply-To: <1a2c16c9-a1af-45f5-82ca-03c8c6b9da2b@sopka.ch> References: <1a2c16c9-a1af-45f5-82ca-03c8c6b9da2b@sopka.ch> Reply-To: "Laurent Bercot" User-Agent: eM_Client/10.1.4588.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable >I have a logger supervised by the very s6-svscan instance it logs through= the fifo trick. >Now sending SIGTERM to the s6-svscan process won't work, since it waits fo= r the logger forever, >which in turn waits for s6-svscan to close the fifo. There is no good solution to this. s6-svscan, the catch-all logger's s6-supervise, and the catch-all logger, are codependent. This is why the construct should only be done once, for the root supervision tree, and the catch-all logger never needs to be killed. (It logs to a RAM filesystem so its existence does not prevent any unmounting.) >Since this is not the main supervision tree, I require the ability to stop = this instance of s6-svscan. If this is not the main supervision tree, there is no reason for you to use the fifo trick and have the s6-svscan log to something under itself. Start the inner s6-svscan as a regular service, with a logger that is supervised by the *outer* supervision tree. -- Laurent