check existence of cfg-file before starting the server
authorEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Mon, 17 Nov 2003 22:02:15 +0000 (22:02 +0000)
committerEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Mon, 17 Nov 2003 22:02:15 +0000 (22:02 +0000)
git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/branches/SYSCALL_SWITCH@390 94cd875c-1c1d-0410-91d2-eb244daf1a30

util-vserver/sysv/rebootmgr.subst
util-vserver/sysv/vservers.subst

index edd5a70..4ac9a25 100755 (executable)
@@ -17,6 +17,8 @@ case "$1" in
        VSERVERS=
        for serv in *.conf
        do
+               test -f "$serv" || continue
+               
                serv=`basename $serv .conf`
                if [ -d $VROOTDIR/$serv ] ; then
                        VSERVERS="$VSERVERS $serv"
index d091d93..3d4d659 100755 (executable)
@@ -12,6 +12,7 @@ sortserver(){
        cd /etc/vservers
        for serv in *.conf
        do
+               test -f "$serv" || continue
                PRIORITY=100
                . $serv
                printf "%03d %s\n" $PRIORITY `basename $serv .conf`