Author: justi9
Date: 2010-10-08 11:43:19 -0400 (Fri, 08 Oct 2010)
New Revision: 4376
Modified:
mgmt/trunk/cumin/bin/cumin-database
Log:
In the install process, always restart the database after configuration
Modified: mgmt/trunk/cumin/bin/cumin-database
===================================================================
--- mgmt/trunk/cumin/bin/cumin-database 2010-10-08 15:27:58 UTC (rev 4375)
+++ mgmt/trunk/cumin/bin/cumin-database 2010-10-08 15:43:19 UTC (rev 4376)
@@ -123,7 +123,10 @@
check-initialized &> /dev/null || initialize
- check-configured &> /dev/null || configure
+ check-configured &> /dev/null || {
+ configure
+ restart > /dev/null
+ }
check-started &> /dev/null || start > /dev/null
@@ -144,6 +147,13 @@
/sbin/service postgresql stop
}
+function restart {
+ check-environment || exit 1
+ check-initialized || exit 1
+
+ /sbin/service postgresql restart
+}
+
function initialize {
check-environment || exit 1