File tree Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change 28
28
* Adjust other parameters if needed (see comments)
29
29
* Make the script run by cron e.g. every minute
30
30
* You're done
31
+
32
+ Cron Setup:
33
+ * Open Crontab using crontab -e
34
+ * For Updating Trackers to Every New Torrent Every 15 Minutes Add: * /15 * * * * /usr/bin/sh [ path]] /transmission-trackers-auto-cron.sh
35
+ * Modify the transmission-trackers-auto.sh file as per your needs. We have provided two options, transmission-daemon & docker
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ # If you are using transmission-daemon directly on system the below code will ensure that trackers script run only when it is running
4
+ if [ " $( systemctl is-active transmission-daemon) " = " active" ]
5
+ then
6
+ /usr/bin/python3 [path]]/transmission-trackers.py
7
+ fi
8
+
9
+ # If you are using docker for transmission use the following. Replace 'docker-container-name' with the appropriate name
10
+ if [ " $( docker container inspect -f ' {{.State.Running}}' ' docker-container-name' ) " = " true" ]
11
+ then
12
+ /usr/bin/python3 [path]]/transmission-trackers.py
13
+ fi
You can’t perform that action at this time.
0 commit comments