--- vserver.org 2002-11-15 01:18:30.000000000 +0100 +++ vserver 2002-11-15 02:22:50.000000000 +0100 @@ -354,10 +354,7 @@ FLAGS= CAPS= get_initdefault $1 - STARTCMD="/etc/rc.d/rc $INITDEFAULT" - if [ -x /vservers/$1/etc/init.d/rc ] ; then - STARTCMD="/etc/init.d/rc $INITDEFAULT" - fi + STARTCMD=`grep ^l$INITDEFAULT /vservers/$1/etc/inittab |cut -d : -f4` DISCONNECT= for f in $S_FLAGS dummy @@ -462,10 +459,7 @@ # The fakeinit flag tell us how to turn off the server get_initdefault $1 export PREVLEVEL=$INITDEFAULT - STOPCMD="/etc/rc.d/rc 6" - if [ -x /vservers/$1/etc/init.d/rc ] ; then - STOPCMD="/etc/init.d/rc 6" - fi + STOPCMD=`grep ^l6 /vservers/$1/etc/inittab |cut -d : -f4` for f in $S_FLAGS dummy do case $f in