Title: [opsview] [9650] Fixed return value where it takes a long time to start up opsview-web
- Revision
- 9650
- Author
- tvoon
- Date
- 2012-07-27 17:48:26 +0100 (Fri, 27 Jul 2012)
Log Message
Fixed return value where it takes a long time to start up opsview-web
Modified Paths
Modified: trunk/opsview-web/bin/opsview-web
===================================================================
--- trunk/opsview-web/bin/opsview-web 2012-07-27 16:42:36 UTC (rev 9649)
+++ trunk/opsview-web/bin/opsview-web 2012-07-27 16:48:26 UTC (rev 9650)
@@ -89,6 +89,8 @@
# Catalyst 5.9 returns back very quickly, before server is ready
# We cause this to wait until the server is ready by checking for pid file
+ # We need to save the RETVAL because status() will change it
+ oldRETVAL=$RETVAL
COUNT=30
while true; do
status >/dev/null 2>&1
@@ -96,13 +98,14 @@
break
fi
if [ $COUNT -lt 1 ]; then
- echo "..."
+ printf "..."
break
fi
COUNT=`expr $COUNT - 1`
sleep 1
done
echo "done"
+ RETVAL=$oldRETVAL
fi
return $RETVAL
}
_______________________________________________
Opsview-checkins mailing list
[email protected]
http://lists.opsview.org/lists/listinfo/opsview-checkins