blob: a6c2333dc86f09d35697ab2863ebdf88dbb3a7e7 [file] [log] [blame]
tom890a43b2014-09-30 09:08:42 -07001#!/bin/bash
Pavlin Radoslavov91413792014-10-15 11:00:32 -07002# -----------------------------------------------------------------------------
tom890a43b2014-09-30 09:08:42 -07003# Remotely kills the ONOS service on the specified node.
Pavlin Radoslavov91413792014-10-15 11:00:32 -07004# -----------------------------------------------------------------------------
tom890a43b2014-09-30 09:08:42 -07005
6[ ! -d "$ONOS_ROOT" ] && echo "ONOS_ROOT is not defined" >&2 && exit 1
7. $ONOS_ROOT/tools/build/envDefaults
8
Pavlin Radoslavov91413792014-10-15 11:00:32 -07009ssh $ONOS_USER@${1:-$OCI} "kill -9 \$(ps -ef | grep karaf.jar | grep -v grep | cut -c10-15)"