mirror of
https://github.com/opennetworkinglab/onos.git
synced 2025-11-03 01:31:21 +01:00
Adding test command to remotely kill onos instance.
This commit is contained in:
parent
e440a63230
commit
890a43b041
9
tools/test/bin/onos-kill
Executable file
9
tools/test/bin/onos-kill
Executable 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)"
|
||||
Loading…
x
Reference in New Issue
Block a user