Update onos-kill script to kill correct Karaf process
Change-Id: I1192d06cb8da586b7e5d0b1709fc1917962a9c9b
diff --git a/tools/test/bin/onos-kill b/tools/test/bin/onos-kill
index 47e5360..d390e44 100755
--- a/tools/test/bin/onos-kill
+++ b/tools/test/bin/onos-kill
@@ -7,7 +7,7 @@
. $ONOS_ROOT/tools/build/envDefaults
ssh $ONOS_USER@${1:-$OCI} "
- pid=\$(ps -ef | grep karaf.jar | grep -v grep | cut -c10-15 | tr -d ' ')
+ pid=\$(ps -ef | grep org.apache.karaf.main.Main | grep -v grep | cut -c10-15 | tr -d ' ')
if [ -n \"\$pid\" ]; then
echo \"Killing ONOS process \$pid on \$(hostname)...\"
kill -9 \$pid