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

Christian Brauner christianvanbrauner at gmail.com
Mon Sep 21 16:01:41 UTC 2015


Signed-off-by: Christian Brauner <christianvanbrauner at gmail.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



More information about the lxc-devel mailing list