Re: s6-svscan & SIGPWR

From: Jan Bramkamp <crest_at_rlwinm.de>
Date: Mon, 14 Mar 2016 17:49:47 +0100

On 14/03/16 17:42, Jan Olszak wrote:
> Hi!
> We're running s6 in an lxc container.
>
> lxc-stop sends SIGPWR to the init process (s6-svscan) to stop the
> container, but SIGPWR isn't handled. It just gets discarded as if nothing
> happened.
>
> Is there a reason it works this way?
>
> Thanks!
> Jan
>

Probably because it masks all signals, whitelists signals the authors
though about and offers to proxy those to scripts. After all s6-svscan
is designed to be a good pid 1 and exiting from an default signal
results in an instant kernel panic. The correct solution would be to
teach s6-svscan about SIGPWR and proxy it to .s6-svscan/SIGPWR.
Received on Mon Mar 14 2016 - 16:49:47 UTC

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