mirror of
https://github.com/opennetworkinglab/onos.git
synced 2025-10-16 18:02:05 +02:00
for consistency with the rest of the scripts. Change-Id: Ib48c28323e769d3540c21f188fad4c80661d3434
10 lines
406 B
Bash
Executable File
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
|