X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=sysv%2Futil-vserver;h=84636ba92ecea69c63fccd916ce8fdc7235554a9;hb=1b96bb97c3fdffceb51d942db4efed50302b57f3;hp=576852408814676d08af8bd9a3b35b624958340d;hpb=fca49fc5682f1d88f8d00c86f931431ff1c71e18;p=util-vserver.git diff --git a/sysv/util-vserver b/sysv/util-vserver index 5768524..84636ba 100755 --- a/sysv/util-vserver +++ b/sysv/util-vserver @@ -14,6 +14,8 @@ test -e "$UTIL_VSERVER_VARS" || { LOCKFILE=util-vserver . "$_LIB_VSERVER_INIT_FUNCTIONS" +. "$_LIB_FUNCTIONS" +. "$__PKGLIBDIR/vserver.functions" function set_helper() @@ -51,6 +53,9 @@ function start() set_helper _endResult $? local retval=$? + _beginResult $"Loading default device map" + loadDeviceMap 0 "$__CONFDIR/.defaults/apps/vdevmap" + _endResult $? test "$retval" -ne 0 || touch "$lockfile" return $retval } @@ -61,11 +66,12 @@ function stop() _beginResult $"Stopping all running guests" $_START_VSERVERS -j 1 --all --stop _endResult $? - local retval=$? _beginResult $"Killing all running contexts" kill_contexts _endResult $? + local retval=$? $_RM -f "$lockfile" + return $retval } function restart()