From: Daniel Hokka Zakrisson Date: Sat, 16 Jun 2007 20:42:03 +0000 (+0000) Subject: Define PREVLEVEL and RUNLEVEL so SuSE's rc script works correctly. X-Git-Tag: release-0.30.214~57 X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=126d631323ffe1338a12f9347d444081cc4fca91;p=util-vserver.git Define PREVLEVEL and RUNLEVEL so SuSE's rc script works correctly. git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2548 94cd875c-1c1d-0410-91d2-eb244daf1a30 --- diff --git a/scripts/vserver.functions b/scripts/vserver.functions index ce50c3b..c42e617 100644 --- a/scripts/vserver.functions +++ b/scripts/vserver.functions @@ -278,6 +278,7 @@ function _generateInitOptions INITCMD_STOP=( "$i" "$RUNLEVEL_STOP" ) done INITCMD_PREPARE=( $_FAKE_RUNLEVEL "$RUNLEVEL_START" /var/run/utmp ) + OPTS_ENV=( "${OPTS_ENV[@]}" PREVLEVEL=N RUNLEVEL="$RUNLEVEL_START" ) ;; (xplain) @@ -690,7 +691,7 @@ function prepareStop pushd "$1/vdir" >/dev/null case "$INITSTYLE" in (sysv) - export PREVLEVEL=$RUNLEVEL_START # required by Debian's initscripts + export PREVLEVEL=$RUNLEVEL_START RUNLEVEL=$RUNLEVEL_STOP # required by Debian's initscripts ;; esac "${STOPCMD_PREPARE[@]}"