projects
/
fusionforge
/
fusionforge.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
project home
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5b0d14f
)
Start db if down
author
Christian Bayle
<cbayle@gmail.com>
Fri, 5 Mar 2010 23:29:18 +0000
(23:29 +0000)
committer
Christian Bayle
<cbayle@gmail.com>
Fri, 5 Mar 2010 23:29:18 +0000
(23:29 +0000)
gforge/deb-specific/install-db.sh
patch
|
blob
|
history
diff --git
a/gforge/deb-specific/install-db.sh
b/gforge/deb-specific/install-db.sh
index 20c7ce021521e35c8c6285e070efa541bb4c0f2e..ce3dba688e012de5ffb80f2f9d490bc754738509 100644
(file)
--- a/
gforge/deb-specific/install-db.sh
+++ b/
gforge/deb-specific/install-db.sh
@@
-37,6
+37,12
@@
function get_pg_version() {
# postgresql on debian
if [ -f /usr/bin/pg_lsclusters ]
then
+ # Start if down
+ pg_version_down=`/usr/bin/pg_lsclusters | grep 5432 | grep down | cut -d' ' -f1`
+ if [ "x$pg_version_down" != "x" ]
+ then
+ invoke-rc.d postgresql-$pg_version_down start
+ fi
pg_version=`/usr/bin/pg_lsclusters | grep 5432 | grep online | cut -d' ' -f1`
return
fi