14.02.2020, 13:29, "innerspacepilot" <innerspacepilot_at_gmx.com>:
> 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.
Received on Mon Feb 17 2020 - 14:39:38 UTC
This archive was generated by hypermail 2.3.0
: Sun May 09 2021 - 19:44:19 UTC