Commit 776d170c by Christian Brauner Committed by Stéphane Graber

Make ephemeral containers survive reboots

parent f01f7975
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment