diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2020-02-18 12:31:51 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2020-02-18 12:31:51 +0000 |
commit | d31e4717acbe535fd851d5a1122914fbffa5c767 (patch) | |
tree | 37ea35d60bdffba0b4ad8bd3624721ab5e834753 /src | |
parent | ebf869beb1dddfd7213dc28831879597ab378f5c (diff) | |
download | s6-linux-init-d31e4717acbe535fd851d5a1122914fbffa5c767.tar.xz |
Trigger a poweroff on SIGPWR to init (power failure)
Diffstat (limited to 'src')
-rw-r--r-- | src/init/s6-linux-init-maker.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/init/s6-linux-init-maker.c b/src/init/s6-linux-init-maker.c index 12807aa..27ac0c4 100644 --- a/src/init/s6-linux-init-maker.c +++ b/src/init/s6-linux-init-maker.c @@ -548,6 +548,7 @@ static inline void make_image (char const *base) auto_script(base, "run-image/" SCANDIR "/.s6-svscan/SIGINT", &sig_script, "-r") ; auto_script(base, "run-image/" SCANDIR "/.s6-svscan/SIGUSR1", &sig_script, "-p") ; auto_script(base, "run-image/" SCANDIR "/.s6-svscan/SIGUSR2", &sig_script, "-h") ; + auto_script(base, "run-image/" SCANDIR "/.s6-svscan/SIGPWR", &sig_script, "-p") ; if (!nologger) { |