[Fusionforge-commits] r8964 - trunk/gforge/deb-specific

Christian Bayle cbayle at libremir.placard.fr.eu.org
Sat Mar 6 00:29:18 CET 2010


Author: cbayle
Date: 2010-03-06 00:29:18 +0100 (Sat, 06 Mar 2010)
New Revision: 8964

Modified:
   trunk/gforge/deb-specific/install-db.sh
Log:
Start db if down


Modified: trunk/gforge/deb-specific/install-db.sh
===================================================================
--- trunk/gforge/deb-specific/install-db.sh	2010-03-05 23:28:37 UTC (rev 8963)
+++ trunk/gforge/deb-specific/install-db.sh	2010-03-05 23:29:18 UTC (rev 8964)
@@ -37,6 +37,12 @@
         # 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




More information about the Fusionforge-commits mailing list