allow to override start/stop commands (patch by Erik Smit)
authorEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Thu, 22 Jan 2004 16:08:16 +0000 (16:08 +0000)
committerEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Thu, 22 Jan 2004 16:08:16 +0000 (16:08 +0000)
git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/branches/SYSCALL_SWITCH@697 94cd875c-1c1d-0410-91d2-eb244daf1a30

util-vserver/scripts/vserver

index f58c0e7..5274efb 100755 (executable)
@@ -504,6 +504,9 @@ elif [ "$2" = "start" ] ; then
                                ;;
                        esac
                done
+               if [ -n "$S_START" ] ; then
+                       STARTCMD=$S_START
+               fi              
                if [ "$FAKEINIT" = "" ] ; then
                        $USR_LIB_VSERVER/fakerunlevel $INITDEFAULT var/run/utmp
                fi
@@ -613,6 +616,10 @@ elif [ "$2" = "stop" ] ; then
                        esac
                done
 
+               if [ -n "$S_STOP" ] ; then
+                       STOPCMD=$S_STOP
+               fi
+               
                calculateCaps $S_CAPS
 
                cd $VROOTDIR/$1