]> git.proxmox.com Git - mirror_lxc.git/commit - src/lxc/commands.c
restart the container at reboot
authorDaniel Lezcano <daniel.lezcano@free.fr>
Thu, 8 Apr 2010 07:44:23 +0000 (09:44 +0200)
committerDaniel Lezcano <dlezcano@fr.ibm.com>
Thu, 8 Apr 2010 07:44:23 +0000 (09:44 +0200)
commit91480a0f0a62732f3115d556b689d62d574294ae
treeced4a09e17a93d12ff48af7de8f5f4c3cc765da3
parent563f2f2ccd2891661836c96f92f047a735355c1b
restart the container at reboot

When the reboot is detected, reboot the container.
That needs to set all file descriptor opened by lxc-start
to be flagged with the close-on-exec flag, otherwise when
re-execing ourself, we inherit our own fd.

Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
src/lxc/commands.c
src/lxc/conf.c
src/lxc/conf.h
src/lxc/confile.c
src/lxc/lxc.h
src/lxc/lxc_start.c
src/lxc/mainloop.c
src/lxc/start.c
src/lxc/utmp.c