From: Calin Burloiu Date: Tue, 19 Oct 2010 08:46:01 +0000 (+0300) Subject: add support for xbt_tracker X-Git-Url: http://p2p-next.cs.pub.ro/gitweb/?a=commitdiff_plain;h=71ad5cdb0776c86ed28f99e4212c6ce4a1256c75;p=p2p-testing-infrastructure.git add support for xbt_tracker --- diff --git a/ControlScripts/clients/xbt-unified-tracker/start_xbtut.sh b/ControlScripts/clients/xbt-unified-tracker/start_xbtut.sh new file mode 100644 index 0000000..1a7520a --- /dev/null +++ b/ControlScripts/clients/xbt-unified-tracker/start_xbtut.sh @@ -0,0 +1,29 @@ +#!/bin/bash +# +# Copyright: Calin-Andrei Burloiu 2010 - calin.burloiu@gmail.com +# +# Bash script used to start a regular instance of XBT Unified Tracker +# The script +# * starts a XBT Unified Tracker daemon. +# + +# Read the global configuration file +# Check if the global configuration file exists +if [ ! -e globalconfig ]; then + echo "Warning: The global config file globalconfig does not exist." +else + source globalconfig +fi + +# Read the node-specific configuration file (TORRENT_FILE) +# Check if the node-specific configuration file exists +if [ ! -e ../ClientWorkingFolders/TmpLogs/node_config ]; then + echo "Warning: The global config file ../ClientWorkingFolders/TmpLogs/node_config does not exist." +else + source ../ClientWorkingFolders/TmpLogs/node_config +fi + +cd $XBTUT_ABS_PATH + +./xbt_tracker + diff --git a/ControlScripts/clients/xbt-unified-tracker/stop_xbtut.sh b/ControlScripts/clients/xbt-unified-tracker/stop_xbtut.sh new file mode 100644 index 0000000..eea5a98 --- /dev/null +++ b/ControlScripts/clients/xbt-unified-tracker/stop_xbtut.sh @@ -0,0 +1,14 @@ +#!/bin/bash +# +# Copyright: Calin-Andrei Burloiu 2010 - calin.burloiu@gmail.com +# +# Bash script used to stop all XBT Unified Tracker daemons. +# The script +# * stops all the XBT Unified Tracker instances + +if [ ! $# -eq 0 ]; then + echo "usage: $0" + exit 1 +fi + +pkill -f xbt_tracker diff --git a/ControlScripts/globalconfig b/ControlScripts/globalconfig index 0cbe38a..77bf91b 100644 --- a/ControlScripts/globalconfig +++ b/ControlScripts/globalconfig @@ -31,6 +31,9 @@ HRK_ABS_PATH="/home/p2p/p2p-clients/hrktorrent/hrktorrent" # hrktorrent with logging support HRK_LOG_ABS_PATH="/home/p2p/p2p-clients/hrktorrent-logging/hrktorrent" +# XBTUT_PATH +XBTUT_ABS_PATH="/home/p2p/xbtut/Tracker" + # WORKING_FOLDER_REL_PATH is relative to TRIBLER_ABS_PATH folder WORKING_FOLDER_REL_PATH="../../P2P-Testing-Infrastructure/ClientWorkingFolders"