From e29882feffe604e5124c126518080e5505ef9c37 Mon Sep 17 00:00:00 2001 From: "Timoney, Daniel (dt5972)" Date: Wed, 11 Apr 2018 16:28:31 -0400 Subject: [PATCH] Add sleep after stop In karaf 4, the 'stop' command returns before the container is actually stopped. So, need to add a sleep to wait for container to come down after stop is issued before trying to restart it. Change-Id: Id6e966e0f510a245cbc28b49dc571ffd242050e4 Issue-ID: SDNC-279 Signed-off-by: Timoney, Daniel (dt5972) --- installation/sdnc/src/main/scripts/startODL.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/installation/sdnc/src/main/scripts/startODL.sh b/installation/sdnc/src/main/scripts/startODL.sh index e2c0fa1c..11d88e0a 100755 --- a/installation/sdnc/src/main/scripts/startODL.sh +++ b/installation/sdnc/src/main/scripts/startODL.sh @@ -110,6 +110,8 @@ then echo "Restarting OpenDaylight" ${ODL_HOME}/bin/stop + echo "Waiting 60 seconds for OpenDaylight stop to complete" + sleep 60 echo "Installed at `date`" > ${SDNC_HOME}/.installed fi -- 2.16.6