--- /dev/null
+#!/bin/bash
+
+#
+# Configuration file for mapping client (string) identifiers to
+# start/stop/detect scripts
+#
+
+start_client()
+{
+ local client_type=$1
+ local client_pid=$1
+
+ DEBUG echo "starting client ..."
+ case "${client_type}" in
+ "hrktorrent_seeder")
+ ./start_hrk_seeder.sh ${torrent_file} &
+ return $(pgrep -P $!)
+ ;;
+ "hrktorrent_leecher")
+ ./start_hrk_leecher.sh ${torrent_file} &
+ return $(pgrep -P $!)
+ ;;
+ esac
+}
+
+stop_client()
+{
+ local client_type=$1
+
+ DEBUG echo "stopping client ..."
+ case "${client_type}" in
+ "hrktorrent_seeder")
+ ./stop_hrk.sh
+ ;;
+ "hrktorrent_leecher")
+ ./stop_hrk.sh
+ ;;
+ esac
+}