Resolve timing issue with restart 85/34985/1
authorTimoney, Dan (dt5972) <dt5972@att.com>
Fri, 9 Mar 2018 19:39:16 +0000 (14:39 -0500)
committerTimoney, Dan (dt5972) <dt5972@att.com>
Fri, 9 Mar 2018 19:39:16 +0000 (14:39 -0500)
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) <dt5972@att.com>
odlsli/src/main/scripts/startODL.sh

index 50e45ce..70341af 100644 (file)
@@ -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