From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/2581 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: "Laurent Bercot" Newsgroups: gmane.comp.sysutils.supervision.general Subject: Re: SysV shutdown util Date: Sat, 11 May 2019 12:56:08 +0000 Message-ID: References: <20190509071019.GE4017@panda> <3137641557573985@myt1-4903e6646a45.qloud-c.yandex.net> Reply-To: "Laurent Bercot" Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="------=_MB0E49D176-FFD3-4C6B-A7F8-B38B27EBFB63" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="181224"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: eM_Client/7.2.34711.0 To: "supervision@list.skarnet.org" Original-X-From: supervision-return-2171-gcsg-supervision=m.gmane.org@list.skarnet.org Sat May 11 14:55:28 2019 Return-path: Envelope-to: gcsg-supervision@m.gmane.org Original-Received: from alyss.skarnet.org ([95.142.172.232]) by blaine.gmane.org with smtp (Exim 4.89) (envelope-from ) id 1hPRXC-000l2y-0p for gcsg-supervision@m.gmane.org; Sat, 11 May 2019 14:55:26 +0200 Original-Received: (qmail 8535 invoked by uid 89); 11 May 2019 12:55:52 -0000 Mailing-List: contact supervision-help@list.skarnet.org; run by ezmlm Original-Sender: Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Original-Received: (qmail 8528 invoked from network); 11 May 2019 12:55:51 -0000 In-Reply-To: <3137641557573985@myt1-4903e6646a45.qloud-c.yandex.net> Xref: news.gmane.org gmane.comp.sysutils.supervision.general:2581 Archived-At: --------=_MB0E49D176-FFD3-4C6B-A7F8-B38B27EBFB63 Content-Type: text/plain; format=flowed; charset=utf-8 Content-Transfer-Encoding: quoted-printable >> you need to be able to convey more information to pid 1 >> than a few signals can. >such as ? >what more information than the runlevel (0 or 6, maybe 1 to go >into single user) does SysV init need to start the system shutdown ? The time of the shutdown. The "shutdown" command isn't necessarily instantaneous, it can register a shutdown for a given time. You could deal with that by creating another process, which is equivalent to running a daemon outside pid 1 (and that's exactly what s6-linux-init-1.0.0.0 does), but if you want to handle it all in pid 1, you need time management in it and that can't be done via signals only. >the Void Linux team just made a shell script out of it that just brings >down the runit services and runsvdir itself. Yeah, that's not difficult. What is difficult is implementing the legacy features of other inits. -- Laurent --------=_MB0E49D176-FFD3-4C6B-A7F8-B38B27EBFB63--