Add sleep after stop 31/42331/1
authorTimoney, Daniel (dt5972) <dt5972@att.com>
Wed, 11 Apr 2018 20:28:31 +0000 (16:28 -0400)
committerTimoney, Daniel (dt5972) <dt5972@att.com>
Wed, 11 Apr 2018 20:28:31 +0000 (16:28 -0400)
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) <dt5972@att.com>
Former-commit-id: e29882feffe604e5124c126518080e5505ef9c37

installation/sdnc/src/main/scripts/startODL.sh

index e2c0fa1..11d88e0 100755 (executable)
@@ -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