"vserver myvserver start" gives exit code 1 if there is no file
/etc/vservers/myvserver.sh, since the last statement in vserver
("test -x /etc/vservers/$1.sh && ...") evaluates to 1 in this case.
[Daniel Hermann]
git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@1789
94cd875c-1c1d-0410-91d2-
eb244daf1a30
$_SAVE_S_CONTEXT $PKGSTATEDIR/$1.ctx \
$_CAPCHROOT $CHROOTOPT . $STARTCMD
sleep 2
- test -x $CONFDIR/$1.sh && $CONFDIR/$1.sh post-start $1
+ test ! -x $CONFDIR/$1.sh || $CONFDIR/$1.sh post-start $1
fi
elif [ "$2" = "running" ] ; then
if [ ! -f $PKGSTATEDIR/$1.ctx ] ; then