On Friday 06 December 2002 02:49, Dinesh Mistry wrote: > I know that this has been discussed in the mailing list archives already > but I am still having problems with installing Gentoo 1.4 > > When I do the following: > > [root@host02:/etc/vservers]$ vserver gentoo start > Starting the virtual server gentoo > Server gentoo is not running > ipv4root is now 66.78.30.181 > Host name is now gentoo.yourhostdirect.net > New security context is 60 > Can't execute /etc/rc.d/rc (No such file or directory) > [root@host02:/etc/vservers]$
It is because vserver tries to guess where the rc script is located (and what options to give it) and gentoo has it placed elsewhere (and uses other options). I proposed the attached patch 3 weeks ago to fix this but nobody seemed interested. What it does is to take the commandline from /etc/inittab exactly as init would. -- Jesper 2:18pm up 26 days, 13:15, 1 user, load average: 4.76, 4.62, 4.28
--- 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
