From: Matthijs Kooijman Date: Mon, 5 Jan 2009 16:06:29 +0000 (+0100) Subject: ldap: Check if a vserver is running. X-Git-Url: https://git.stderr.nl/gitweb?a=commitdiff_plain;h=7d66aa2118c907050c31682c066b3ac7c87ddfc1;p=matthijs%2Fupstream%2Fbackupninja.git ldap: Check if a vserver is running. --- diff --git a/handlers/ldap.in b/handlers/ldap.in index d929252..65dd853 100644 --- a/handlers/ldap.in +++ b/handlers/ldap.in @@ -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"