added basic gentoo support (thanks to Allen D. Parker II)
authorEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Tue, 18 Nov 2003 20:18:47 +0000 (20:18 +0000)
committerEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Tue, 18 Nov 2003 20:18:47 +0000 (20:18 +0000)
git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/branches/SYSCALL_SWITCH@399 94cd875c-1c1d-0410-91d2-eb244daf1a30

util-vserver/scripts/vserver

index 80b47b1..6d80286 100755 (executable)
@@ -472,6 +472,8 @@ elif [ "$2" = "start" ] ; then
                STARTCMD="/etc/rc.d/rc $INITDEFAULT"
                if [ -x $VROOTDIR/$1/etc/init.d/rc ] ; then
                        STARTCMD="/etc/init.d/rc $INITDEFAULT"
+               elif [ -x $VROOTDIR/$1/usr/bin/emerge ] ; then
+                       STARTCMD="/sbin/rc default"
                fi
 
                DISCONNECT=
@@ -585,7 +587,10 @@ elif [ "$2" = "stop" ] ; then
                STOPCMD="/etc/rc.d/rc 6"
                if [ -x $VROOTDIR/$1/etc/init.d/rc ] ; then
                        STOPCMD="/etc/init.d/rc 6"
+               elif [ -x $VROOTDIR/$1/usr/bin/emerge ] ; then
+                       STOPCMD="/sbin/rc shutdown"
                fi
+
                for f in $S_FLAGS dummy
                do
                        case $f in