diff options
author | intrigeri <intrigeri@boum.org> | 2008-06-24 15:55:10 +0000 |
---|---|---|
committer | intrigeri <intrigeri@boum.org> | 2008-06-24 15:55:10 +0000 |
commit | 88b787718d190b01101c656f805bf32f9b116137 (patch) | |
tree | d5993068e9784ee4896f692c88b3d233e0f96ff2 /handlers/svn.in | |
parent | 6c628e78f4f64680b5cec6b8062fe7e0f654043b (diff) | |
download | backupninja-88b787718d190b01101c656f805bf32f9b116137.tar.gz backupninja-88b787718d190b01101c656f805bf32f9b116137.tar.bz2 |
pgsql, mysql, svn: use new vservers_running function from lib/vserver (factorization++)
Diffstat (limited to 'handlers/svn.in')
-rw-r--r-- | handlers/svn.in | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/handlers/svn.in b/handlers/svn.in index 377d71c..d19b0b8 100644 --- a/handlers/svn.in +++ b/handlers/svn.in @@ -22,10 +22,7 @@ if [ $vservers_are_available = yes ]; then fatal "The vserver given in vsname ($vsname) does not exist." fi # is it running ? - $VSERVERINFO -q $vsname RUNNING - if [ $? -ne 0 ]; then - fatal "The vserver $vsname is not running." - fi + vservers_running $vsname || fatal "The vserver $vsname is not running." # everything ok info "Using vserver '$vsname'." usevserver=yes |