From 7d66aa2118c907050c31682c066b3ac7c87ddfc1 Mon Sep 17 00:00:00 2001 From: Matthijs Kooijman Date: Mon, 5 Jan 2009 17:06:29 +0100 Subject: [PATCH] ldap: Check if a vserver is running. --- handlers/ldap.in | 4 ++++ 1 file changed, 4 insertions(+) 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" -- 2.30.2