projects
/
matthijs
/
upstream
/
backupninja-vserver.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
r210@um: micah | 2005-12-27 08:38:07 -0500
[matthijs/upstream/backupninja-vserver.git]
/
handlers
/
mysql
diff --git
a/handlers/mysql
b/handlers/mysql
index 569b0a206d21dc4b509539fd969c2ce6e9d181e3..cd2d491f0bb1cc27deb0ef5399d3c3af8ad9bce0 100644
(file)
--- a/
handlers/mysql
+++ b/
handlers/mysql
@@
-51,13
+51,16
@@
fi
# If needed, make sure that the specified vserver exists and is running.
if [ $usevserver ]
then
# If needed, make sure that the specified vserver exists and is running.
if [ $usevserver ]
then
- info "
e
xamining vserver '$vsname'"
+ info "
E
xamining vserver '$vsname'"
# does it exist ?
vroot="$VROOTDIR/$vsname"
[ -d $vroot ] || fatal "vserver '$vsname' does not exist at '$vroot'"
# is it running ?
# 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."
+ $VSERVERINFO -q $vsname RUNNING
+ if [ $? -ne 0 ]
+ then
+ fatal "vserver $vsname is not running."
+ fi
fi
# create backup dirs, the vroot variable will be empty if no vsname was specified
fi
# create backup dirs, the vroot variable will be empty if no vsname was specified