Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbroberts2020-10-29 21:43:20 +0000
committerRyan D. Brooks2021-01-13 00:29:14 +0000
commit24972e226cafdda1d79bb471499eef8d736d1f22 (patch)
treeaaf16abaf1494ed042a2c14ab7b53d25fbc91dad
parent0942feceb7c1a2e98f5c753eec989a33db7fa945 (diff)
downloadorg.eclipse.osee-24972e226cafdda1d79bb471499eef8d736d1f22.tar.gz
org.eclipse.osee-24972e226cafdda1d79bb471499eef8d736d1f22.tar.xz
org.eclipse.osee-24972e226cafdda1d79bb471499eef8d736d1f22.zip
bug: Use netstat to kill process instead of lsof
Change-Id: I609ce63dfed27e5b85a20e68740169ee292e58a4 Signed-off-by: broberts <baily.e.roberts@boeing.com>
-rw-r--r--plugins/org.eclipse.osee.server.p2/runServer.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/org.eclipse.osee.server.p2/runServer.sh b/plugins/org.eclipse.osee.server.p2/runServer.sh
index 4d2415713c1..274499ecfa1 100644
--- a/plugins/org.eclipse.osee.server.p2/runServer.sh
+++ b/plugins/org.eclipse.osee.server.p2/runServer.sh
@@ -195,7 +195,7 @@ stop() {
echo pid: $pid
# process still alive, try kill
if [ -n "$pid" ]; then
- kill $(lsof -t -i:OSEE_APP_SERVER_PORT)
+ kill $(netstat -plten | grep $OSEE_APP_SERVER_PORT | awk -F'/' '{print $1}' | awk '{print $9}')
RETVAL=$?
if [ $RETVAL == 0 ]; then
# kill successfully sent to process

Back to the top