fake init environment during shutdown, otherwise rc just calls shutdown/halt which...
authorBenedikt Boehm <hollow@gentoo.org>
Fri, 27 Apr 2007 09:08:43 +0000 (09:08 +0000)
committerBenedikt Boehm <hollow@gentoo.org>
Fri, 27 Apr 2007 09:08:43 +0000 (09:08 +0000)
git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2538 94cd875c-1c1d-0410-91d2-eb244daf1a30

scripts/vserver.functions

index c1751e8..b51c507 100644 (file)
@@ -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 )
            ;;