--- /usr/sbin/vserver Fri Aug 22 08:36:49 2003 +++ vserver Sun Aug 24 21:32:02 2003 @@ -406,10 +406,14 @@ FLAGS= CAPS= get_initdefault $1 + if [ -n "$S_START" ] ; then + STARTCMD="$S_START" + else STARTCMD="/etc/rc.d/rc $INITDEFAULT" if [ -x $VSERVERS_ROOT/$1/etc/init.d/rc ] ; then STARTCMD="/etc/init.d/rc $INITDEFAULT" fi + fi DISCONNECT= FAKEINIT= @@ -518,9 +522,14 @@ # The fakeinit flag tell us how to turn off the server get_initdefault $1 export PREVLEVEL=$INITDEFAULT - STOPCMD="/etc/rc.d/rc 6" + if [ -n "$S_STOP" ] ; then + STOPCMD="$S_STOP" + else + STOPCMD="/etc/rc.d/rc 6" if [ -x $VSERVERS_ROOT/$1/etc/init.d/rc ] ; then STOPCMD="/etc/init.d/rc 6" + fi + fi for f in $S_FLAGS dummy do