aboutsummaryrefslogtreecommitdiffstats
path: root/main/lxc/lxc.initd
diff options
context:
space:
mode:
Diffstat (limited to 'main/lxc/lxc.initd')
-rw-r--r--main/lxc/lxc.initd6
1 files changed, 6 insertions, 0 deletions
diff --git a/main/lxc/lxc.initd b/main/lxc/lxc.initd
index aab7147f74c..210a1269fa9 100644
--- a/main/lxc/lxc.initd
+++ b/main/lxc/lxc.initd
@@ -134,6 +134,9 @@ stop() {
_autostart "Stopping" --shutdown --timeout ${LXC_TIMEOUT:-30}
return
fi
+ if yesno "$systemd_container"; then
+ : ${POWEROFF_SIGNAL=-38}
+ fi
ebegin "Stopping container ${CONTAINER}"
start-stop-daemon --stop --pidfile ${pidfile} \
@@ -148,6 +151,9 @@ reboot() {
_autostart "Rebooting" --reboot
return
fi
+ if yesno "$systemd_container"; then
+ : ${RESTART_SIG=39}
+ fi
ebegin "Sending reboot signal to container $CONTAINER"
start-stop-daemon --signal ${RESTART_SIG:-SIGTERM} \