blob: 9da768e8faf94ae5bef6c1dfe377300cc74b0dac [file] [log] [blame]
Thomas Vachuskacbba0522014-12-03 19:03:31 -08001#!/bin/bash
2# -----------------------------------------------------------------------------
3# Remotely kills and stops the ONOS service on the specified node.
4# -----------------------------------------------------------------------------
5
Pavlin Radoslavovaf21ba62014-12-04 09:48:07 -08006[ ! -d "$ONOS_ROOT" ] && echo "ONOS_ROOT is not defined" >&2 && exit 1
7. $ONOS_ROOT/tools/build/envDefaults
8
Thomas Vachuskacbba0522014-12-03 19:03:31 -08009onos-kill "${1:-$OCI}" && onos-service "${1:-$OCI}" stop