]> git.proxmox.com Git - mirror_lxc.git/commit
Additional logic for dealing with container shutdown / reboot
authorMichael H. Warfield <mhw@WittsEnd.com>
Sat, 28 Dec 2013 17:35:05 +0000 (12:35 -0500)
committerSerge Hallyn <serge.hallyn@ubuntu.com>
Thu, 2 Jan 2014 16:11:34 +0000 (10:11 -0600)
commit99c2fb07d74c20d0eec38c05c4ac64e5782d8e7d
treedcac86bf5231dfb50fa2544b66b4110a52a6739a
parent0b98289ef95e83fcd493ba6688e57aa8b4fb53f7
Additional logic for dealing with container shutdown / reboot

Additional logic for dealing with container shutdown / reboot

Fix a problem with CentOS containers and legacy Fedora (<16) containers
not shutting down or rebooting properly.  Copy /etc/init.d/halt to
/etc/init.d/lxc-halt, deleting everything from the "hwclock save" and
all after and append a force halt or reboot at the end of the new
script, to prevent reexecing init.  Link that script in as
S00lxc-halt in rc0.d and S00lxc-reboot in rc6.d to intercept the
shutdown process before it gets to S01halt / S01reboot causing the hang.

Fixed some typos in the CentOS template that were introduced in the
previous patch for hwaddr settings and missed in regression testing.

Cleaned up some instruction typos and tabs from previous patch.

Signed-off-by: Michael H. Warfield <mhw@WittsEnd.com>
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
templates/lxc-centos.in
templates/lxc-fedora.in