So after successfully install your prep_whitelight, i gave a try and added yesterday the trans_watchdog
(renamed from trans_watchdog_ok) as a 1-min cronjob.I let it run the whole night and checked the result this morning.
- in the /var/log/messages the trans_watchdog runs in each minute
- My vi /opt/etc/trans_watchdog.exude is empty.
- My vi /opt/etc/trans_watchdog.conf:
AUTO_REMOVE_FROM_LIST=1
AUTO_REMOVE_SEEDLINK=1
AUTO_UNRAR=1
CPULEVEL=5
DATAGROUP=www-data
DEBUG=1
FULL_THROTTLE_DOWN=0
FULL_THROTTLE_UP=30
INTERVAL=5
KEEPRAR=0
KEEP_TRANSMISSION_RUNNING=1
MAILERSERVICE=sendEmail
MAILFROM=moc.liamg|xxxx#moc.liamg|xxxx
MAILSERVER=smtp.gmail.com
MAILTO=moc.liamg|xxx#moc.liamg|xxx
MAX_RATIO=1.0
MAX_SEEDHOURS=48
MAX_SIMULTANEOUS=5
MIN_SEEDHOURS=1
SCHEDULE_THROTTLE_DOWN=2000
SCHEDULE_THROTTLE_UP=20
SCHEDULE_WEEKEND=([0]="0" [1]="0" [2]="1" [3]="1" [4]="1" [5]="1" [6]="1" [7]="$
SCHEDULE_WORKDAY=([0]="1" [1]="1" [2]="1" [3]="1" [4]="1" [5]="1" [6]="1" [7]="$
SOURCE=/shares/Public/WWW/Qtorrent/Watchtorrent/
SUPERSOCIAL=1
TARGET=/shares/Public/WWW/Qtorrent/Downloaded
THROTTLE_DONTKILL=1
THROTTLE_DOWN=100
THROTTLE_UP=1
TRANSDAEMON=/opt/bin/transmission-daemon
TRANSOPTS=' -m'
TRANSREMOTE=/opt/bin/transmission-remote
TRANSSTART=/opt/etc/init.d/S90transmission
TRANSSTOP=/opt/etc/init.d/K10transmission
WORK=/shares/Public/WWW/Qtorrent/Downloading/
WORKDAY=([0]="0" [1]="1" [2]="1" [3]="1" [4]="1" [5]="1" [6]="0")
If I run the trans_watchdog:
[root@MyBookWorld Transmission]# ./trans_watchdog
[root@MyBookWorld Transmission]#
Then I started the Transmission (1.72) and waited. I experienced the same problem that I had with the 1.61 when I took
trans_watchdog in the crontab. For some reason the Transmission starts and after 30sec-1min couple of minutes it just restarts and after
I lose the connection with my Transmisison using the Transmission-Remote all the time. Couple of sec later I am able to connect again
but it start to check the torrent and stick at some %. Than lose connection… Then stucks at rechecking…
If i do not run the trans_watchdog it runs without any problem.
I think we have the problem still at the variables configuration but not sure…
My info:
-trans_watchdog location: "Public\WWW\Welcome\Transmission\trans_watchdog",
-cronjob line: "*/1 * * * * /shares/Public/WWW/Welcome/Transmission/trans_watchdog" in "/opt/var/cron/crontabs/root",
My variables:
SOURCE=/shares/Public/WWW/Qtorrent/Watchtorrent
WORK=/shares/Public/WWW/Qtorrent/Downloading
TARGET=/shares/Public/WWW/Qtorrent/Downloaded
MAILTO=moc.liamg|XXX#moc.liamg|XXX
MAILFROM=moc.liamg|XXX#moc.liamg|XXX
MAILSERVER="smtp.gmail.com"
Just to make it sure the trans_watchdog does the following:
1) creates the trans_watchdog.config and trans_watchdog.exlude files with all the necessary variables info
2) looks for and adds new torrents in the $SOURCE directory
3) depending on the presettings (occupancy of samba, workday/weekend schedules , cpulevel) it tracks/adjusts the downloads in $WORK directory
4) If a downloaded torrent contains multirar files it unrars them and delete the rars files.
5) moves the downloaded files to $TARGETdirectory and send email from the successful download
6) Removing obsolete symbolic links
+ stops transmission every 3 hours when it isn't handling anything
General questions about the trans_watchdog:
0) Does the script try to start transmission if it is not running?
1) Do I have to change the "www-data" to something?:
SMB_USER=www-data
DATAUSER=www-data
DATAGROUP=www-data
2) Changing the workday/weekend schedule:
If I want to change the schedule I have to change only the 0 to 1 or 1 to 0 in the variables, rights?
What do you need from me to proceed?