From cf1817d075b934aeab77d7bf10da3bf886b034ae Mon Sep 17 00:00:00 2001 From: intrigeri Date: Sat, 27 Aug 2005 00:19:50 +0000 Subject: mysql and dup handlers: when using a vserver, check if it is running --- handlers/svn | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'handlers/svn') diff --git a/handlers/svn b/handlers/svn index 551255b..6ac5402 100644 --- a/handlers/svn +++ b/handlers/svn @@ -23,11 +23,16 @@ then fi fi -# Check to make sure that the specified vserver exists +# If needed, make sure that the specified vserver exists and is running. if [ $usevserver ] then + info "examining vserver '$vsname'" + # does it exist ? vroot="$VROOTDIR/$vsname" [ -d $vroot ] || fatal "vserver '$vsname' does not exist at '$vroot'" + # is it running ? + running=`$VSERVERINFO $vsname RUNNING` + [ $running = 1 ] || fatal "vserver $vsname is not running." fi cd $vroot$src -- cgit v1.2.3