X-Git-Url: https://git.stderr.nl/gitweb?p=matthijs%2Fupstream%2Fbackupninja.git;a=blobdiff_plain;f=handlers%2Fmysql.in;h=fe1e7832f32ee43c090cf5e17d6e985e040f8376;hp=defb72aa8aeb98713d807024a5a488bcbca43cdd;hb=88b787718d190b01101c656f805bf32f9b116137;hpb=6c628e78f4f64680b5cec6b8062fe7e0f654043b diff --git a/handlers/mysql.in b/handlers/mysql.in index defb72a..fe1e783 100644 --- a/handlers/mysql.in +++ b/handlers/mysql.in @@ -31,10 +31,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