On Wednesday 03 September 2003 18:14, Allen Parker wrote:
> Just wondering, how does one go about launching a gentoo vserver from the
> disks kindly provided by Mr. Rus Foster? /etc/rc.d/rc doesn't exist...
> hrm... anybody got any pointers?

I have changed the vserver script as attached to read the start and stop 
command from the inittab file.

-- 
Jesper
 14:42:05 up 27 min,  1 user,  load average: 1.42, 1.37, 1.13
--- 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

Reply via email to