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 C8E5C22D10 for ; Wed, 24 Jul 2024 23:09:16 +0200 (CEST) Received: (qmail 37240 invoked by uid 89); 24 Jul 2024 21:09:42 -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 37233 invoked from network); 24 Jul 2024 21:09:42 -0000 From: "Laurent Bercot" To: "Carlos Eduardo" , "Brett Neumeier" Subject: Re: Possible to shut down an s6 service via command rather than signal? Cc: supervision Date: Wed, 24 Jul 2024 21:09:14 +0000 Message-Id: In-Reply-To: References: <20240724123027.8c04a742f5ee892725c2120f@freesa.org> Reply-To: "Laurent Bercot" User-Agent: eM_Client/9.2.2258.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable >>From a similar Github issue [1], the suggested way of implementing "stop >commands" on top of s6 is running these two commands: > >``` >s6-svc -O /path/to/service >stop-command >``` > >I'm not aware of any s6-rc sugar around it. Indeed. Every long-lived program should have a graceful stop signal, instead of relying on an external command. That's how Unix has always worked, and it's a misdesign of qemu not to support that. Sorry that the s6 way of handling shutdown commands is kludgy, but s6 really wasn't designed to accommodate them. :/ -- Laurent