summaryrefslogtreecommitdiff
path: root/src/init
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2020-02-18 12:31:51 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2020-02-18 12:31:51 +0000
commitd31e4717acbe535fd851d5a1122914fbffa5c767 (patch)
tree37ea35d60bdffba0b4ad8bd3624721ab5e834753 /src/init
parentebf869beb1dddfd7213dc28831879597ab378f5c (diff)
downloads6-linux-init-d31e4717acbe535fd851d5a1122914fbffa5c767.tar.xz
Trigger a poweroff on SIGPWR to init (power failure)
Diffstat (limited to 'src/init')
-rw-r--r--src/init/s6-linux-init-maker.c1
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)
{