From: Timoney, Daniel (dt5972) Date: Wed, 11 Apr 2018 20:28:31 +0000 (-0400) Subject: Add sleep after stop X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=e29882feffe604e5124c126518080e5505ef9c37;hp=1ab05880f8b8c32a7e4149c6103b88144e17e0e4;p=sdnc%2Foam.git 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) --- 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