From d31e4717acbe535fd851d5a1122914fbffa5c767 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Tue, 18 Feb 2020 12:31:51 +0000 Subject: Trigger a poweroff on SIGPWR to init (power failure) --- src/init/s6-linux-init-maker.c | 1 + 1 file changed, 1 insertion(+) 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) { -- cgit v1.2.3