From: Benedikt Boehm Date: Sat, 17 Nov 2007 21:36:51 +0000 (+0000) Subject: use sane PATH during shutdown X-Git-Tag: release-0.30.215~73 X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bea2fe0cd0b83cad13ec38db3f93f9d4c782f4c6;p=util-vserver.git use sane PATH during shutdown git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2634 94cd875c-1c1d-0410-91d2-eb244daf1a30 --- diff --git a/scripts/vserver.functions b/scripts/vserver.functions index e2f7507..152e5ce 100644 --- a/scripts/vserver.functions +++ b/scripts/vserver.functions @@ -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 ) ;;