From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/2876 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Jeff Newsgroups: gmane.comp.sysutils.supervision.general Subject: Re: runit SIGPWR support Date: Mon, 17 Feb 2020 15:39:38 +0100 Message-ID: <3631651581950378@vla5-ac90c725e5c1.qloud-c.yandex.net> References: <1beb6e35-d4be-60b8-fc52-af666c4fffe3@gmx.com> <20200212215427.GG12551@cathexis.xen.prgmr.com> <7102151581677176@myt2-dd3598211d70.qloud-c.yandex.net> <2b39fcd3-2954-f4be-94cc-7b089e2e2e09@gmx.com> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="14673"; mail-complaints-to="usenet@ciao.gmane.io" To: supervision Original-X-From: supervision-return-2465-gcsg-supervision=m.gmane-mx.org@list.skarnet.org Mon Feb 17 15:39:51 2020 Return-path: Envelope-to: gcsg-supervision@m.gmane-mx.org Original-Received: from alyss.skarnet.org ([95.142.172.232]) by ciao.gmane.io with smtp (Exim 4.92) (envelope-from ) id 1j3hYr-0003cU-Jf for gcsg-supervision@m.gmane-mx.org; Mon, 17 Feb 2020 15:39:49 +0100 Original-Received: (qmail 7666 invoked by uid 89); 17 Feb 2020 14:40:08 -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 7659 invoked from network); 17 Feb 2020 14:40:07 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.com; s=mail; t=1581950379; bh=O89ufGedQC1HFnoDdvlEQD5eUEEkfuUTFXJ/3baDLbw=; h=References:Date:Message-Id:Subject:In-Reply-To:To:From; b=DIlhMahktFcDoi82zpw2B4XnDQ2L73Rg2/ScXw1oZ/zFBNGvfT7+KFK1kjwYNeZ7z gNtGoHtUuF8FIzmOGrFb4/BCu7uwQxAL0vRf/ZTYtrQJqqq3AN+2gQ7sg0PVOFTriV VCwFrztcqOPU1Exr+NqM+xYeXjh/2g01V8/Hnea0= Authentication-Results: mxback21g.mail.yandex.net; dkim=pass header.i=@yandex.com In-Reply-To: <2b39fcd3-2954-f4be-94cc-7b089e2e2e09@gmx.com> X-Mailer: Yamail [ http://yandex.ru ] 5.0 Xref: news.gmane.io gmane.comp.sysutils.supervision.general:2876 Archived-At: 14.02.2020, 13:29, "innerspacepilot" : > I would suggest it should be a graceful shutdown ( stopping all daemons, > syncing filesystems and stuff ) yes, of course, this should preceed the powerdown step. a more "correct" solution would be the approach taken by SysV init via the "powerfail" stanza for the "real" process #1 (not those running in containers/other process namespaces). it starts a subprocess to handle the situation, i. e. see if power returns and shutdown ASAP if not. there is no excuse for a Linux process #1 to ignore SIGPWR anyway since that signal is sent by the kernel in powerfail situations (Linux and System V unices), it also makes sense to abuse it to shutdown a container, so i cannot understand why runit just ignores it.