File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ sleep 3m
23
23
rm /tmp/TTAA.$id .lock
24
24
}
25
25
# Get list of active torrents
26
- ids=" $( transmission-remote --auth=" $auth " --list | grep -E ' Downloading ' | grep ' ^ ' | awk ' { print $1 }' ) "
26
+ ids=" $( transmission-remote --auth=" $auth " --list | grep -vE ' Seeding|Stopped|Finished ' | grep ' ^ ' | awk ' { print $1 }' ) "
27
27
for id in $ids ; do
28
28
add_date=" $( transmission-remote --auth=" $auth " --torrent " $id " --info| grep ' ^ Date added: ' | cut -c 21-) "
29
29
add_date_t=" $( date -d " $add_date " " +%Y-%m-%d %H:%M" ) "
Original file line number Diff line number Diff line change @@ -3,9 +3,10 @@ Description=transmission tracker add
3
3
Requires =network.target
4
4
5
5
[Service]
6
- Type =forked
6
+ Type =simple
7
7
ExecStart =/opt/bin/add_trackers_auto.sh
8
- Restart =always
8
+ ExecStop =/bin/kill -s TERM $MAINPID
9
+ KillMode =control-group
9
10
10
11
[Install]
11
12
WantedBy =multi-user.target
You can’t perform that action at this time.
0 commit comments