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, NICE_REPLY_A,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 20351 invoked from network); 25 Feb 2022 16:52:06 -0000 Received: from alyss.skarnet.org (95.142.172.232) by inbox.vuxu.org with ESMTPUTF8; 25 Feb 2022 16:52:06 -0000 Received: (qmail 9749 invoked by uid 89); 25 Feb 2022 16:52:30 -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 9742 invoked from network); 25 Feb 2022 16:52:30 -0000 Message-ID: <0cb9bb90-f63e-5dbe-b890-f03803b7c9e4@rlwinm.de> Date: Fri, 25 Feb 2022 17:52:01 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.6.1 Subject: Re: s6-svscan shutdown notification Content-Language: en-US To: supervision@list.skarnet.org References: From: Jan Bramkamp In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 24.02.22 06:16, Jan-willem De Bleser wrote: > Not an option to be its parent since there's no persistent supervisor of a > jail's root process, but that script using .s6-svscan/finish should do > nicely. Thanks for the suggestion! I use s6-rc on the FreeBSD jail host as well to manage jails with their own supervision trees as long running services making the jail supervision tree a subtree of the host supervision tree. I prefer to let s6-rc handle state transitions instead of using the more limited state management support in the jail utility. I use one service bundle per jail containing a oneshot to create/destroy a persistent jail and a long run depending on the oneshot using jexec to start the supervision subtree inside the jail.