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
Branches
Tags
No related merge requests found
...@@ -35,6 +35,8 @@ version 0.9.6 -- unreleased ...@@ -35,6 +35,8 @@ version 0.9.6 -- unreleased
. make deleted maildirs record the date they were deleted . make deleted maildirs record the date they were deleted
. add destid_file configuration option to enable you to specify an alternate . add destid_file configuration option to enable you to specify an alternate
ssh public key authentication file (defaulting to /root/.ssh/id_rsa) ssh public key authentication file (defaulting to /root/.ssh/id_rsa)
pgsql, mysql, svn:
. use new vservers_running function from lib/vserver (factorization++)
sys: sys:
. update for 2.6 kernels: use /proc/kallsyms instead of /proc/ksyms . update for 2.6 kernels: use /proc/kallsyms instead of /proc/ksyms
(Closes: Trac#39) (Closes: Trac#39)
......
...@@ -31,10 +31,7 @@ if [ $vservers_are_available = yes ]; then ...@@ -31,10 +31,7 @@ if [ $vservers_are_available = yes ]; then
fatal "The vserver given in vsname ($vsname) does not exist." fatal "The vserver given in vsname ($vsname) does not exist."
fi fi
# is it running ? # is it running ?
$VSERVERINFO -q $vsname RUNNING vservers_running $vsname || fatal "The vserver $vsname is not running."
if [ $? -ne 0 ]; then
fatal "The vserver $vsname is not running."
fi
# everything ok # everything ok
info "Using vserver '$vsname'." info "Using vserver '$vsname'."
usevserver=yes usevserver=yes
......
...@@ -21,10 +21,7 @@ if [ $vservers_are_available = yes ]; then ...@@ -21,10 +21,7 @@ if [ $vservers_are_available = yes ]; then
fatal "The vserver given in vsname ($vsname) does not exist." fatal "The vserver given in vsname ($vsname) does not exist."
fi fi
# is it running ? # is it running ?
$VSERVERINFO -q $vsname RUNNING vservers_running $vsname || fatal "The vserver $vsname is not running."
if [ $? -ne 0 ]; then
fatal "The vserver $vsname is not running."
fi
# everything ok # everything ok
info "Using vserver '$vsname'." info "Using vserver '$vsname'."
usevserver=yes usevserver=yes
......
...@@ -22,10 +22,7 @@ if [ $vservers_are_available = yes ]; then ...@@ -22,10 +22,7 @@ if [ $vservers_are_available = yes ]; then
fatal "The vserver given in vsname ($vsname) does not exist." fatal "The vserver given in vsname ($vsname) does not exist."
fi fi
# is it running ? # is it running ?
$VSERVERINFO -q $vsname RUNNING vservers_running $vsname || fatal "The vserver $vsname is not running."
if [ $? -ne 0 ]; then
fatal "The vserver $vsname is not running."
fi
# everything ok # everything ok
info "Using vserver '$vsname'." info "Using vserver '$vsname'."
usevserver=yes usevserver=yes
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment