From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/2579 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Jeff Newsgroups: gmane.comp.sysutils.supervision.general Subject: SysV shutdown util Date: Sat, 11 May 2019 13:26:25 +0200 Message-ID: <3137641557573985@myt1-4903e6646a45.qloud-c.yandex.net> References: <20190509071019.GE4017@panda> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="59164"; mail-complaints-to="usenet@blaine.gmane.org" To: supervision@list.skarnet.org Original-X-From: supervision-return-2169-gcsg-supervision=m.gmane.org@list.skarnet.org Sat May 11 13:26:33 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 1hPQ9B-000FFh-0F for gcsg-supervision@m.gmane.org; Sat, 11 May 2019 13:26:33 +0200 Original-Received: (qmail 6934 invoked by uid 89); 11 May 2019 11:26:55 -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 6927 invoked from network); 11 May 2019 11:26:55 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.com; s=mail; t=1557573985; bh=SeaTvq73YVNXgSVuroq4BrM7ITYzfSpJakNJOw8P+P4=; h=Message-Id:Subject:In-Reply-To:Date:References:To:From; b=Fl7QCiPqFT/obBzqqUqCREb31aAwlsFeHnE8PxlltYkjgYLqCshWra0cOWRxvel18 ehJd3kNhs2GqL10G50D71pVrYSZfuv3tAS4DcyvsZiR3wibt/gmALZZm0ZdefR2/MO a/rW+T8uabeTLLoDkEBHwzxzYa+y1se5Cs1ljPXc= Authentication-Results: mxback17g.mail.yandex.net; dkim=pass header.i=@yandex.com In-Reply-To: X-Mailer: Yamail [ http://yandex.ru ] 5.0 Xref: news.gmane.org gmane.comp.sysutils.supervision.general:2579 Archived-At: 10.05.2019, 20:03, "Laurent Bercot" : > then signals are not enough: > 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 ? and shutdown itself just notifies all users via wall, logs shutdown time to wtmp and then notifies init via the /dev/.initctl fifo. this can all be done solely by 2 different signals. the Void Linux team just made a shell script out of it that just brings down the runit services and runsvdir itself.