]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
lxc-busybox: use lxc.rebootsignal = SIGTERM
authorBogdan Purcareata <bogdan.purcareata@freescale.com>
Mon, 16 Feb 2015 09:38:36 +0000 (09:38 +0000)
committerStéphane Graber <stgraber@ubuntu.com>
Wed, 18 Feb 2015 17:42:40 +0000 (09:42 -0800)
Otherwise lxc-stop -r has no effect on the container.

Signed-off-by: Bogdan Purcareata <bogdan.purcareata@freescale.com>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
templates/lxc-busybox.in

index 72531d6bd04c31dc67fdf79d3f490dd6db72e864..7e05bd6886eac63b384d6aede691550a5fd15c87 100644 (file)
@@ -270,6 +270,7 @@ copy_configuration()
 grep -q "^lxc.rootfs" $path/config 2>/dev/null || echo "lxc.rootfs = $rootfs" >> $path/config
 cat <<EOF >> $path/config
 lxc.haltsignal = SIGUSR1
+lxc.rebootsignal = SIGTERM
 lxc.utsname = $name
 lxc.tty = 1
 lxc.pts = 1