From 14f31ea385240cc82ed06ae8e6ea3a01166066af Mon Sep 17 00:00:00 2001 From: "Timoney, Dan (dt5972)" Date: Mon, 19 Mar 2018 19:25:44 -0400 Subject: Add sleep for stop Stop takes a few seconds, so wait 60 seconds after issuing stop for karaf to finish coming down. Change-Id: Icbde6152e417e60a9e4d138671ddf8ef8decb978 Issue-ID: CCSDK-208 Signed-off-by: Timoney, Dan (dt5972) --- odlsli/src/main/scripts/startODL.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'odlsli/src/main') diff --git a/odlsli/src/main/scripts/startODL.sh b/odlsli/src/main/scripts/startODL.sh index 568e179a..ad5c8bc6 100644 --- a/odlsli/src/main/scripts/startODL.sh +++ b/odlsli/src/main/scripts/startODL.sh @@ -47,9 +47,9 @@ then echo "Installing SDN-C database" ${CCSDK_HOME}/bin/installSdncDb.sh echo "Starting OpenDaylight" - ${ODL_HOME}/bin/start - echo "Waiting ${SLEEP_TIME} seconds for OpenDaylight to initialize" - sleep ${SLEEP_TIME} + ${ODL_HOME}/bin/start + echo "Waiting ${SLEEP_TIME} seconds for OpenDaylight to initialize" + sleep ${SLEEP_TIME} echo "Installing SDN-C platform features" ${CCSDK_HOME}/bin/installFeatures.sh if [ -x ${CCSDK_HOME}/svclogic/bin/install.sh ] @@ -59,7 +59,9 @@ then fi echo "Restarting OpenDaylight" - ${ODL_HOME}/bin/stop + ${ODL_HOME}/bin/stop + echo "Waiting 60 seconds for OpenDaylight stop to complete" + sleep 60 echo "Installed at `date`" > ${CCSDK_HOME}/.installed fi -- cgit 1.2.3-korg