[lxc-devel] [PATCH 3/3] lxc-busybox: use lxc.rebootsignal = SIGTERM

Serge Hallyn serge.hallyn at ubuntu.com
Mon Feb 16 16:33:39 UTC 2015


Quoting Bogdan Purcareata (bogdan.purcareata at freescale.com):
> Otherwise lxc-stop -r has no effect on the container.
> 
> Signed-off-by: Bogdan Purcareata <bogdan.purcareata at freescale.com>

Acked-by: Serge E. Hallyn <serge.hallyn at ubuntu.com>

> ---
>  templates/lxc-busybox.in | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/templates/lxc-busybox.in b/templates/lxc-busybox.in
> index 72531d6..7e05bd6 100644
> --- a/templates/lxc-busybox.in
> +++ b/templates/lxc-busybox.in
> @@ -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
> -- 
> 2.1.4
> 
> _______________________________________________
> lxc-devel mailing list
> lxc-devel at lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-devel


More information about the lxc-devel mailing list