Skip to content

Commit 09269e9

Browse files
authored
Merge pull request blind-oracle#3 from zcq100/master
add systemd config file
2 parents 54f6940 + 3914c52 commit 09269e9

File tree

5 files changed

+29
-2
lines changed

5 files changed

+29
-2
lines changed

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
transmissionrpc>=0.11

tracker_ipv6.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
http://tracker.ipv6tracker.ru/announce

transmission-trackers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# Host, port, username and password to connect to Transmission
44
# Set user and pw to None if auth is not required
5-
host, port, user, pw = 'localhost', 9091, 'admin', 'pwd'
5+
host, port, user, pw = 'localhost', 9091, 'admin', 'passwd'
66

77
# Work with torrents having only these statuses.
88
# Can be any combination of: 'check pending', 'checking', 'downloading', 'seeding', 'stopped'
@@ -17,7 +17,7 @@
1717
# The trackers from these lists are checked by looking up the URL's hostname in DNS.
1818
urls = [
1919
'https://raw.githubusercontent.com/ngosang/trackerslist/master/trackers_all.txt',
20-
# 'http://some.other.tracker.list/trackers.txt'
20+
'https://raw.githubusercontent.com/zcq100/transmission-trackers/master/tracker_ipv6.txt',
2121
# ...
2222
]
2323

transmission-trackers.service

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
[Unit]
2+
Description=add tracker to torent
3+
After=network.target network-online.target
4+
Wants=network-online.target
5+
6+
[Service]
7+
User=zcq100
8+
Type=oneshot
9+
#Your WorkingDirectory
10+
WorkingDirectory=/docker/transmission/transmission-trackers
11+
ExecStart=python3 transmission-trackers.py
12+
13+
14+
[Install]
15+
WantedBy=multi-user.target

transmission-trackers.timer

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
[Unit]
2+
Description=add trackers to torrent every 10 minutes
3+
4+
[Timer]
5+
OnBootSec=0s
6+
OnUnitActiveSec=10min
7+
Unit=transmission-trackers.service
8+
9+
[Install]
10+
WantedBy=multi-user.target

0 commit comments

Comments
 (0)