summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2022-01-31 17:21:16 +0000
committerLaurent Bercot <ska@appnovation.com>2022-01-31 17:21:16 +0000
commit26ed6aca0d59545a4c970dc458d4dc7c007ea362 (patch)
treebed840709b69d864e37a2c3a52d9c876a71663e0 /src
parent4c4e732c0202dd283d6b5822956787ceefc0f5a1 (diff)
downloads6-linux-init-26ed6aca0d59545a4c970dc458d4dc7c007ea362.tar.xz
Halt, not poweroff, containers on SIGTERM (docker stop)
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src')
-rw-r--r--src/init/s6-linux-init-maker.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/init/s6-linux-init-maker.c b/src/init/s6-linux-init-maker.c
index 209ad2c..f17bc37 100644
--- a/src/init/s6-linux-init-maker.c
+++ b/src/init/s6-linux-init-maker.c
@@ -588,7 +588,7 @@ static inline void make_image (char const *base)
if (inns)
{
- auto_script(base, "run-image/" SCANDIR "/.s6-svscan/SIGTERM", &sig_script, "-p") ;
+ auto_script(base, "run-image/" SCANDIR "/.s6-svscan/SIGTERM", &sig_script, "-h") ;
auto_script(base, "run-image/" SCANDIR "/.s6-svscan/crash", &container_crash_script, 0) ;
auto_script(base, "run-image/" SCANDIR "/.s6-svscan/finish", &container_exit_script, 0) ;
auto_dir(base, "run-image/" CONTAINER_RESULTS, 0, 0, 0755) ;