Updating command line script to kill ONOS, working on 16.04 and 18.04 and OSX
Change-Id: I1373bdf2a5799085d06c12d78279715457e762ba
diff --git a/tools/package/onos-run-karaf b/tools/package/onos-run-karaf
index c22ab95..cb803e1 100755
--- a/tools/package/onos-run-karaf
+++ b/tools/package/onos-run-karaf
@@ -10,7 +10,7 @@
function killServer() {
echo "Killing ONOS server..."
- ps -e | grep apache.karaf.main.Main | grep -v grep | cut -c1-6 | xargs kill -9 &>/dev/null
+ ps -ef | grep apache.karaf.main.Main | grep -v grep | awk '{print $2}' | xargs kill -9 &>/dev/null
}
# Kill any running instances