ControlScripts: globalconfig's xbtut folder modified
[p2p-testing-infrastructure.git] / ControlScripts / clients / xbt-unified-tracker / start_xbtut.sh
1 #!/bin/bash
2 #
3 # Copyright: Calin-Andrei Burloiu 2010 - calin.burloiu@gmail.com
4 #
5 # Bash script used to start a regular instance of XBT Unified Tracker
6 # The script
7 #  * starts a XBT Unified Tracker daemon.
8 #
9
10 # Read the global configuration file
11 # Check if the global configuration file exists
12 if [ ! -e globalconfig ]; then
13         echo "Warning: The global config file globalconfig does not exist."
14 else
15         source globalconfig
16 fi
17
18 # Read the node-specific configuration file (TORRENT_FILE)
19 # Check if the node-specific configuration file exists
20 if [ ! -e ../ClientWorkingFolders/TmpLogs/node_config ]; then
21         echo "Warning: The global config file ../ClientWorkingFolders/TmpLogs/node_config does not exist."
22 else
23         source ../ClientWorkingFolders/TmpLogs/node_config
24 fi
25
26 cd $XBTUT_ABS_PATH
27
28 ./xbt_tracker
29