[lxc-devel] [PATCH] Make ephemeral containers survive reboots

Stéphane Graber stgraber at ubuntu.com
Mon Sep 21 17:04:42 UTC 2015


On Mon, Sep 21, 2015 at 06:01:41PM +0200, Christian Brauner wrote:
> Signed-off-by: Christian Brauner <christianvanbrauner at gmail.com>

Acked-by: Stéphane Graber <stgraber at ubuntu.com>

> ---
>  src/lxc/start.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/lxc/start.c b/src/lxc/start.c
> index 3dd1064..4e977c5 100644
> --- a/src/lxc/start.c
> +++ b/src/lxc/start.c
> @@ -502,7 +502,7 @@ void lxc_fini(const char *name, struct lxc_handler *handler)
>  		close(handler->ttysock[0]);
>  		close(handler->ttysock[1]);
>  	}
> -	if (handler->conf->ephemeral == 1) {
> +	if (handler->conf->ephemeral == 1 && handler->conf->reboot != 1) {
>  		lxc_destroy_container_on_signal(handler, name);
>  	}
>  	cgroup_destroy(handler);
> -- 
> 2.5.3
> 
> _______________________________________________
> lxc-devel mailing list
> lxc-devel at lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-devel

-- 
Stéphane Graber
Ubuntu developer
http://www.ubuntu.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20150921/935a6d67/attachment.sig>


More information about the lxc-devel mailing list