From 078d1e30d3bf2d47341057bfd81e209855803018 Mon Sep 17 00:00:00 2001 From: Razvan Deaconescu Date: Tue, 3 Aug 2010 19:28:11 +0300 Subject: [PATCH] ControlScripts: add over-script for stopping/killing clients --- ControlScripts/stop_client.sh | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100755 ControlScripts/stop_client.sh diff --git a/ControlScripts/stop_client.sh b/ControlScripts/stop_client.sh new file mode 100755 index 0000000..b7f5472 --- /dev/null +++ b/ControlScripts/stop_client.sh @@ -0,0 +1,30 @@ +#!/bin/bash +# +# 2010 Razvan Deaconescu, razvan.deaconescu@cs.pub.ro +# +# Stop running client +# The script +# * stops a client +# * stop schedule_client.sh script +# +# Command line argument specifies client type + +# use _DEBUG="off" to turn off debug printing +_DEBUG="on" + +if test $# -ne 1; then + echo "usage: $0 client-type" 1>&2 + exit 1 +fi + +# Read the global configuration variables +source ../ConfigFiles/globalconfig.txt + +# Read client mappings configuration file +source ../ConfigFiles/client_script_mappings + +client_type=$1 + +stop_client ${client_type} + +killall ${SCHEDULE_CLIENT_SCRIPT} -- 2.20.1