#!/bin/bash


### BEGIN INIT INFO
# Provides:          restoreBTServer
# Required-Start:    mysql
# Required-Stop:
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: Restores the state of Bittorrent tracker and client.
### END INIT INFO


# /m23/vms/bin/restoreBTServer
# Restores the state of Bittorrent tracker and client.
# (C) Hauke Goos-Habermann <hhabermann@pc-kiel.de>


#Don't execute, if it should be stopped
if [ $# -gt 0 ] && [ $1 = "stop" ]
then
	exit 0
fi

rm -f /m23/tmp/BTClient-checkRunning.sh /m23/tmp/BTTracker-checkRunning.sh 2> /dev/null

/m23/bin/btServer.php autostart