Wait on termination of java process 53/35553/1
authorTimoney, Dan (dt5972) <dt5972@att.com>
Tue, 13 Mar 2018 18:43:44 +0000 (14:43 -0400)
committerTimoney, Dan (dt5972) <dt5972@att.com>
Tue, 13 Mar 2018 18:43:44 +0000 (14:43 -0400)
Exec of client didn't work - docker container still dies at end of script.
Trying instead to wait on death of java process.

Change-Id: I5687ca46b55b13a4918b0be1e2204abf58ca43b2
Issue-ID: CCSDK-208
Signed-off-by: Timoney, Dan (dt5972) <dt5972@att.com>
odlsli/src/main/scripts/startODL.sh

index 5ca4079..3e52821 100644 (file)
@@ -63,5 +63,6 @@ then
     echo "Installed at `date`" > ${CCSDK_HOME}/.installed
 fi
 
-# Start client to force a wait on state of karaf server
-exec ${ODL_HOME}/bin/client
+# Wait on java
+pid=$(ps auxwww | grep java | grep -v grep | awk '{print $2}')
+exec tail --pid=$pid -f /dev/null