From: Benedikt Boehm Date: Fri, 27 Apr 2007 09:08:43 +0000 (+0000) Subject: fake init environment during shutdown, otherwise rc just calls shutdown/halt which... X-Git-Tag: release-0.30.214~67 X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=99150426d6665e412127a6513b752f51da949f5b;p=util-vserver.git fake init environment during shutdown, otherwise rc just calls shutdown/halt which does not work without init git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2538 94cd875c-1c1d-0410-91d2-eb244daf1a30 --- diff --git a/scripts/vserver.functions b/scripts/vserver.functions index c1751e8..b51c507 100644 --- a/scripts/vserver.functions +++ b/scripts/vserver.functions @@ -304,7 +304,7 @@ function _generateInitOptions test -n "$RUNLEVEL_START" || RUNLEVEL_START="default" INITCMD_START=( /lib/rcscripts/sh/init-vserver.sh "$RUNLEVEL_START" ) - INITCMD_STOP=( /sbin/rc shutdown ) + INITCMD_STOP=( env -i RUNLEVEL=0 /sbin/rc shutdown ) INITCMD_PREPARE=( $_FAKE_RUNLEVEL 3 /var/run/utmp ) ;;