From 6f04f32688a7f88dbc68316e19671511f6e60765 Mon Sep 17 00:00:00 2001 From: Stephen Soltesz Date: Mon, 29 Sep 2008 17:13:59 +0000 Subject: [PATCH] disable the 'halt' patch, and enable util-vserver init script that should help shutdown all slices automatically. --- config.planetlab/bootstrapfs.post | 43 +++++++++++++++++++------------ 1 file changed, 26 insertions(+), 17 deletions(-) diff --git a/config.planetlab/bootstrapfs.post b/config.planetlab/bootstrapfs.post index c2535bda..58d0ffc2 100644 --- a/config.planetlab/bootstrapfs.post +++ b/config.planetlab/bootstrapfs.post @@ -7,8 +7,14 @@ if [ -z "${vdir}" ] ; then exit fi +# NOTE: we're enabling util-vserver to allow it to help shutdown all slices +# before rebooting. This has been problematic in the past. +for service in util-vserver; do + chroot ${vdir} /sbin/chkconfig $service on +done + # Remove unneeded services -for service in util-vserver vprocunhide vservers-default; do +for service in vprocunhide vservers-default; do chroot ${vdir} /sbin/chkconfig $service off done @@ -18,25 +24,28 @@ echo > ${vdir}/etc/sysconfig/crontab # Add site_admin account chroot ${vdir} /usr/sbin/useradd -p "" -u 502 -m site_admin -# NOTE: this is added to ensure that processes running within the slices that +# NOTE: Removed due to incompatibility between fedora and centos, and b/c we +# expect that enabling util-vserver above will help with shutdown. +# +# : this is added to ensure that processes running within the slices that # may have special permissions and other parts of the filesystem engated are # killed before shutdown. We experienced hangs when rebooting without this # step. -( cat <