Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
backupninja
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Liberate
backupninja
Commits
d600ba40
Commit
d600ba40
authored
19 years ago
by
intrigeri
Browse files
Options
Downloads
Patches
Plain Diff
handlers/pgsql: make more use of the new lib/vserver functionality
parent
e5098e0c
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
handlers/pgsql
+4
-6
4 additions, 6 deletions
handlers/pgsql
with
4 additions
and
6 deletions
handlers/pgsql
+
4
−
6
View file @
d600ba40
...
...
@@ -10,12 +10,12 @@ getconf vsname
localhost
=
`
hostname
`
# If vservers are
configured, decide if the handler should
#
use them
or if it should just operate on the host
# If vservers are
enabled, check that $vsname exists, and decide if the
#
handler should use it
or if it should just operate on the host
.
local
usevserver
=
no
if
[
$vservers_are_available
=
yes
]
;
then
if
!
vservers_exist
"
$vsname
"
;
then
fatal
"
At least one of t
he vserver
s listed
in vsname
s
(
$vsname
s
) does not exist."
fatal
"
T
he vserver
given
in vsname (
$vsname
) does not exist."
else
info
"using vserver '
$vsname
'"
usevserver
=
yes
...
...
@@ -23,13 +23,11 @@ if [ $vservers_are_available = yes ]; then
fi
# As needed, make sure that :
# * the specified vserver
exists and
is running
# * the specified vserver is running
# * the specified vserver or host has the needed executables
if
[
$usevserver
=
yes
]
;
then
info
"examining vserver '
$vsname
'"
# does it exist ?
vroot
=
"
$VROOTDIR
/
$vsname
"
[
-d
$vroot
]
||
fatal
"vserver '
$vsname
' does not exist at '
$vroot
'"
# is it running ?
running
=
`
$VSERVERINFO
$vsname
RUNNING
`
if
[
"
$running
"
=
"1"
]
;
then
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment