From 7448501933cc7e99665c49a002563061ad800f5d Mon Sep 17 00:00:00 2001 From: "Timoney, Dan (dt5972)" Date: Tue, 13 Mar 2018 14:43:44 -0400 Subject: Wait on termination of java process 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) --- odlsli/src/main/scripts/startODL.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'odlsli') diff --git a/odlsli/src/main/scripts/startODL.sh b/odlsli/src/main/scripts/startODL.sh index 5ca40796..3e528216 100644 --- a/odlsli/src/main/scripts/startODL.sh +++ b/odlsli/src/main/scripts/startODL.sh @@ -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 -- cgit 1.2.3-korg