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.

Reply via email to