From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/2885 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: Sun, 23 Feb 2020 17:11:15 +0100 Message-ID: <6513831582474275@myt3-605d5ea4bc20.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> <20200214074520.674d8c19@mydesk.domain.cxm> <20200214182241.15614126@mydesk.domain.cxm> 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="18206"; mail-complaints-to="usenet@ciao.gmane.io" To: supervision Original-X-From: supervision-return-2474-gcsg-supervision=m.gmane-mx.org@list.skarnet.org Sun Feb 23 17:11:29 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 1j5tqr-0004Wz-P4 for gcsg-supervision@m.gmane-mx.org; Sun, 23 Feb 2020 17:11:29 +0100 Original-Received: (qmail 28529 invoked by uid 89); 23 Feb 2020 16:11:45 -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 28522 invoked from network); 23 Feb 2020 16:11:45 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.com; s=mail; t=1582474275; bh=OLBrnZISzLxtbDteXvo/qTNwRZDy3xsxQ0LXbB3GeIo=; h=References:Date:Message-Id:Subject:In-Reply-To:To:From; b=m4OjuKDU85C/ACOHP4Pq6UZJ3rrX0skxXFpvIvXzBcxZzFjy+Vt9/JbtG+P1V0b9c AZA8+tZDN36bJ97spJh+0jgTfnGS/bOETIHWqbcoGeHH1CEmAVlzix206ZTYKnKM2i fHp7I+9ScLIz3KeMiOrUkJn0Cdpq71ifs4UUMBaM= Authentication-Results: mxback18j.mail.yandex.net; dkim=pass header.i=@yandex.com In-Reply-To: X-Mailer: Yamail [ http://yandex.ru ] 5.0 Xref: news.gmane.io gmane.comp.sysutils.supervision.general:2885 Archived-At: > Most init systems allow the SIGPWR behavior to be configured. > This includes Upstart, systemd, and my own "little init": > > https://gitlab.com/chinstrap/linit#configuration > > I provide a guide for using linit with runit here, but the process is > experimental: > > https://gitlab.com/chinstrap/linit/-/blob/master/README.runit.md linit does less than runit since it does not respawn any subprocess, so this may not be a good choice for runit fans. the only solution here is to patch runit's unmaintained code and add support for SIGPWR (similar to the way it reacts to SIGINT (secure attention key/ctrl-alt-del)) and SIGWINCH (keyboard request). when you are at it you can also handle other signals (e. g. the real time signals in a way compatible with systemd). this is highly linux-specific of course but no real problem. > Lastly I want to mention that lxc.signal.halt is not available with LXD. that means SIGPWR cannot be replaced by another signal ?