X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=handlers%2Fsvn;h=6ac54029547665829ba01b09ccbd47a19e18d784;hb=a9c6b54934fde4fc8b65785e207e365a30b44802;hp=551255b943038d6226b95a97f6735a3b978541f5;hpb=f79a8c29bde5190117e2166d088cd2ac0cab3843;p=matthijs%2Fupstream%2Fbackupninja-vserver.git 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