From bea2fe0cd0b83cad13ec38db3f93f9d4c782f4c6 Mon Sep 17 00:00:00 2001 From: Benedikt Boehm Date: Sat, 17 Nov 2007 21:36:51 +0000 Subject: [PATCH] use sane PATH during shutdown git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2634 94cd875c-1c1d-0410-91d2-eb244daf1a30 --- scripts/vserver.functions | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 ) ;; -- 1.8.1.5