use sane PATH during shutdown
authorBenedikt Boehm <hollow@gentoo.org>
Sat, 17 Nov 2007 21:36:51 +0000 (21:36 +0000)
committerBenedikt Boehm <hollow@gentoo.org>
Sat, 17 Nov 2007 21:36:51 +0000 (21:36 +0000)
git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2634 94cd875c-1c1d-0410-91d2-eb244daf1a30

scripts/vserver.functions

index e2f7507..152e5ce 100644 (file)
@@ -315,9 +315,10 @@ function _generateInitOptions
 
        (xgentoo)
            test -n "$RUNLEVEL_START" || RUNLEVEL_START="default"
+           RC_PATH=/usr/sbin:/usr/bin:/sbin:/bin
 
            INITCMD_START=( env TERM=$TERM /lib/rcscripts/sh/init-vserver.sh "$RUNLEVEL_START" )
-           INITCMD_STOP=( env -i TERM=$TERM RUNLEVEL=0 /sbin/rc shutdown )
+           INITCMD_STOP=( env -i PATH=$RC_PATH TERM=$TERM RUNLEVEL=0 /sbin/rc shutdown )
            INITCMD_PREPARE=( $_FAKE_RUNLEVEL 3 /var/run/utmp )
            ;;