# * starts/stops a client
# * manages when client completes
+# use _DEBUG="off" to turn off debug printing
_DEBUG="on"
DEBUG()
# Read the global configuration variables
source ../ConfigFiles/globalconfig.txt
+# Read client mappings configuration file
+source ../ConfigFiles/client_script_mappings
+
client_type=$1
torrent_file=$2
done
}
-start_client()
-{
- DEBUG echo "starting client ..."
-}
-
-stop_client()
-{
- DEBUG echo "stopping client ..."
-}
-
suspend_client()
{
DEBUG echo "suspending client ..."
+ kill -STOP ${client_pid}
}
resume_client()
{
DEBUG echo "resuming client ..."
+ kill -CONT ${client_pid}
}
parse_periods