Skip to content
Snippets Groups Projects
Commit 88b78771 authored by intrigeri's avatar intrigeri
Browse files

pgsql, mysql, svn: use new vservers_running function from lib/vserver (factorization++)

parent 6c628e78
No related branches found
No related tags found
No related merge requests found
......@@ -35,6 +35,8 @@ version 0.9.6 -- unreleased
. make deleted maildirs record the date they were deleted
. add destid_file configuration option to enable you to specify an alternate
ssh public key authentication file (defaulting to /root/.ssh/id_rsa)
pgsql, mysql, svn:
. use new vservers_running function from lib/vserver (factorization++)
sys:
. update for 2.6 kernels: use /proc/kallsyms instead of /proc/ksyms
(Closes: Trac#39)
......
......@@ -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
......
......@@ -21,10 +21,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
......
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment