git-svn-id: http://code.autistici.org/svn/backupninja/trunk@333
758a04ac-41e6-0310-8a23-
8373a73cc35d
-# If vservers are configured, decide if the handler should
-# use them or if it should just operate on the host
+# If vservers are enabled, check that $vsname exists, and decide if the
+# handler should use it or if it should just operate on the host.
local usevserver=no
if [ $vservers_are_available = yes ]; then
if ! vservers_exist "$vsname" ; then
local usevserver=no
if [ $vservers_are_available = yes ]; then
if ! vservers_exist "$vsname" ; then
- fatal "At least one of the vservers listed in vsnames ($vsnames) does not exist."
+ fatal "The vserver given in vsname ($vsname) does not exist."
else
info "using vserver '$vsname'"
usevserver=yes
else
info "using vserver '$vsname'"
usevserver=yes
fi
# As needed, make sure that :
fi
# As needed, make sure that :
-# * the specified vserver exists and is running
+# * the specified vserver is running
# * the specified vserver or host has the needed executables
if [ $usevserver = yes ]; then
info "examining vserver '$vsname'"
# * the specified vserver or host has the needed executables
if [ $usevserver = yes ]; then
info "examining vserver '$vsname'"
vroot="$VROOTDIR/$vsname"
vroot="$VROOTDIR/$vsname"
- [ -d $vroot ] || fatal "vserver '$vsname' does not exist at '$vroot'"
# is it running ?
running=`$VSERVERINFO $vsname RUNNING`
if [ "$running" = "1" ]; then
# is it running ?
running=`$VSERVERINFO $vsname RUNNING`
if [ "$running" = "1" ]; then