From 01435ccac1188d80b99dbb13c7064146ce569a52 Mon Sep 17 00:00:00 2001 From: "Timoney, Dan (dt5972)" Date: Fri, 9 Mar 2018 14:39:16 -0500 Subject: 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) --- odlsli/src/main/scripts/startODL.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'odlsli') 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 -- cgit 1.2.3-korg