Skip to content

Commit 6e8424f

Browse files
committed
add systemd-file
1 parent 02d3d64 commit 6e8424f

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

transmission-trackers.service

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
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+
WorkingDirectory=/docker/transmission/transmission-trackers
10+
ExecStart=python3 transmission-trackers.py
11+
12+
13+
[Install]
14+
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)