summaryrefslogtreecommitdiffstats
path: root/odlsli/src/main/scripts
diff options
context:
space:
mode:
authorTimoney, Dan (dt5972) <dt5972@att.com>2018-03-13 14:43:44 -0400
committerTimoney, Dan (dt5972) <dt5972@att.com>2018-03-13 14:43:44 -0400
commit7448501933cc7e99665c49a002563061ad800f5d (patch)
treea671c9bf71e18b01555938af74bff2207eaee27c /odlsli/src/main/scripts
parenta16cced961d7d298ae3cc8ede231546e6b2f98c1 (diff)
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) <dt5972@att.com>
Diffstat (limited to 'odlsli/src/main/scripts')
-rw-r--r--odlsli/src/main/scripts/startODL.sh5
1 files changed, 3 insertions, 2 deletions
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