Author: tmckay
Date: 2012-05-21 19:49:49 +0000 (Mon, 21 May 2012)
New Revision: 5387
Modified:
trunk/cumin/bin/cumin-database
Log:
Add "the database system is starting up" to the retry list in
check-created-wait. Print out the string returned from psql in a failure case.
BZ823506
Modified: trunk/cumin/bin/cumin-database
===================================================================
--- trunk/cumin/bin/cumin-database 2012-05-21 18:43:55 UTC (rev 5386)
+++ trunk/cumin/bin/cumin-database 2012-05-21 19:49:49 UTC (rev 5387)
@@ -127,7 +127,7 @@
do
res="$(psql -d cumin -U cumin -h localhost -c '\q'
2>&1)"
case $res in
- *"could not connect"*)
+ *"could not connect"* | *"database system is starting
up"*)
if [ $c -eq 0 ] ; then
echo
fi
@@ -138,7 +138,8 @@
return 0
;;
*)
- echo "Error: The database is not created"
+ echo $res
+ echo "Error: The database may not be created"
if [ "$1" != noadvice ]; then
echo "Hint: Run 'cumin-database install'"
fi
Show replies by thread