From: Christian Brauner Date: Mon, 21 Sep 2015 16:01:41 +0000 (+0200) Subject: Make ephemeral containers survive reboots X-Git-Tag: lxc-2.0.0.beta1~134 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=776d170c5e831fa1609dd4cdbd9233ec059e3216;p=thirdparty%2Flxc.git Make ephemeral containers survive reboots Signed-off-by: Christian Brauner Acked-by: Stéphane Graber --- diff --git a/src/lxc/start.c b/src/lxc/start.c index 3dd10645f..4e977c52f 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);