ldap: Check if a vserver is running.
authorMatthijs Kooijman <matthijs@stdin.nl>
Mon, 5 Jan 2009 16:06:29 +0000 (17:06 +0100)
committerMatthijs Kooijman <matthijs@stdin.nl>
Wed, 7 Jan 2009 20:49:35 +0000 (21:49 +0100)
handlers/ldap.in

index d929252d0b021ec0698a47fa4e6302693cd9f46a..65dd85375e13a6f1066a376ee2cfc6cd9040da65 100644 (file)
@@ -51,6 +51,10 @@ function make_backup() {
       vdir=""
       vexec=""
    else
+      if ! vservers_running "$vsname"; then
+         error "vserver $vsname is not running!"
+         return 1
+      fi
       info "Running on vserver $vsname"
       vdir="$VROOTDIR/$vsname"
       vexec="$VSERVER $vsname exec"