summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimoney, Dan (dt5972) <dt5972@att.com>2018-03-09 14:39:16 -0500
committerTimoney, Dan (dt5972) <dt5972@att.com>2018-03-09 14:39:16 -0500
commit01435ccac1188d80b99dbb13c7064146ce569a52 (patch)
treead0a2e490af3a977766d5a8f93ba0a4e4f7c3292
parent619bed86a1d43f4c25c05d33218d36d9db9c9146 (diff)
Resolve timing issue with restart
With Nitrogen, it can take some time after stop is issued for karaf container to actually come down. Add a sleep to allow time for stop to complete before execing karaf. Change-Id: Ifb39cb78390bd595791cc96ac148d17d3c9db08c Issue-ID: CCSDK-208 Signed-off-by: Timoney, Dan (dt5972) <dt5972@att.com>
-rw-r--r--odlsli/src/main/scripts/startODL.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/odlsli/src/main/scripts/startODL.sh b/odlsli/src/main/scripts/startODL.sh
index 50e45ce0..70341af9 100644
--- a/odlsli/src/main/scripts/startODL.sh
+++ b/odlsli/src/main/scripts/startODL.sh
@@ -60,7 +60,9 @@ then
echo "Restarting OpenDaylight"
${ODL_HOME}/bin/stop
+ echo "Waiting ${SLEEP_TIME} seconds for OpenDaylight to stop"
+ sleep ${SLEEP_TIME}
echo "Installed at `date`" > ${CCSDK_HOME}/.installed
fi
-exec ${ODL_HOME}/bin/karaf
+exec ${ODL_HOME}/bin/karaf server