From: Enrico Scholz Date: Mon, 17 Nov 2003 22:02:15 +0000 (+0000) Subject: check existence of cfg-file before starting the server X-Git-Tag: version_0_24_90~8 X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2c35446314f8bcfb383b435e6a2a5d0919d627a9;p=util-vserver.git check existence of cfg-file before starting the server git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/branches/SYSCALL_SWITCH@390 94cd875c-1c1d-0410-91d2-eb244daf1a30 --- diff --git a/util-vserver/sysv/rebootmgr.subst b/util-vserver/sysv/rebootmgr.subst index edd5a70..4ac9a25 100755 --- a/util-vserver/sysv/rebootmgr.subst +++ b/util-vserver/sysv/rebootmgr.subst @@ -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" diff --git a/util-vserver/sysv/vservers.subst b/util-vserver/sysv/vservers.subst index d091d93..3d4d659 100755 --- a/util-vserver/sysv/vservers.subst +++ b/util-vserver/sysv/vservers.subst @@ -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`