Adding test command to remotely kill onos instance.

This commit is contained in:
tom 2014-09-30 09:08:42 -07:00
parent e440a63230
commit 890a43b041

9
tools/test/bin/onos-kill Executable file
View File

@ -0,0 +1,9 @@
#!/bin/bash
#-------------------------------------------------------------------------------
# Remotely kills the ONOS service on the specified node.
#-------------------------------------------------------------------------------
[ ! -d "$ONOS_ROOT" ] && echo "ONOS_ROOT is not defined" >&2 && exit 1
. $ONOS_ROOT/tools/build/envDefaults
ssh $ONOS_USER@${1:-$OCI} "kill -9 \$(ps -ef | grep karaf.jar | grep -v grep | cut -c10-15)"