Thomas Vachuska | cbba052 | 2014-12-03 19:03:31 -0800 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | # ----------------------------------------------------------------------------- |
| 3 | # Remotely kills and stops the ONOS service on the specified node. |
| 4 | # ----------------------------------------------------------------------------- |
| 5 | |
Pavlin Radoslavov | af21ba6 | 2014-12-04 09:48:07 -0800 | [diff] [blame] | 6 | [ ! -d "$ONOS_ROOT" ] && echo "ONOS_ROOT is not defined" >&2 && exit 1 |
| 7 | . $ONOS_ROOT/tools/build/envDefaults |
| 8 | |
Thomas Vachuska | cbba052 | 2014-12-03 19:03:31 -0800 | [diff] [blame] | 9 | onos-kill "${1:-$OCI}" && onos-service "${1:-$OCI}" stop |