onos/tools/test/bin/onos-die
Pavlin Radoslavov af21ba6fd5 Added missing inclusion of $ONOS_ROOT/tools/build/envDefaults
for consistency with the rest of the scripts.

Change-Id: Ib48c28323e769d3540c21f188fad4c80661d3434
2014-12-04 09:49:29 -08:00

10 lines
406 B
Bash
Executable File

#!/bin/bash
# -----------------------------------------------------------------------------
# Remotely kills and stops the ONOS service on the specified node.
# -----------------------------------------------------------------------------
[ ! -d "$ONOS_ROOT" ] && echo "ONOS_ROOT is not defined" >&2 && exit 1
. $ONOS_ROOT/tools/build/envDefaults
onos-kill "${1:-$OCI}" && onos-service "${1:-$OCI}" stop