Increase retry timeout when fetching karaf.log
In some environment it might take longer than 5s. Increase to 30s.
Change-Id: Id9283ee2c5015e83aecf56fdc45ab200eb1c427b
diff --git a/tools/package/onos-run-karaf b/tools/package/onos-run-karaf
index 343210f..bb818e3 100755
--- a/tools/package/onos-run-karaf
+++ b/tools/package/onos-run-karaf
@@ -76,15 +76,15 @@
echo "$!" > /tmp/onos.pid
# Hang-on a bit and then start tailing the ONOS log output
-RETRY_COUNT=5
+MAX_RETRY=30
echo "Waiting for karaf.log"
-until [ $RETRY_COUNT -le 0 ]; do
+until [ $MAX_RETRY -le 0 ]; do
KARAF_LOG=$(find $ONOS_HOME -type f -name karaf.log)
if [ $KARAF_LOG ]; then
tail -f $KARAF_LOG
return
fi
- RETRY_COUNT=$[$RETRY_COUNT-1]
+ MAX_RETRY=$[$MAX_RETRY-1]
sleep 1
done
echo "Fail to open karaf.log"