Re: runit SIGPWR support

From: Jeff <sysinit_at_yandex.com>
Date: Sun, 23 Feb 2020 17:11:15 +0100

> 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 ?
Received on Sun Feb 23 2020 - 16:11:15 UTC

This archive was generated by hypermail 2.3.0 : Sun May 09 2021 - 19:44:19 UTC