Skip to content

Commit c55c70b

Browse files
fix systemd service AndrewMarchukov#2
1 parent 42c1fa9 commit c55c70b

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

tracker-add-auto.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ fi
2020
done
2121
done
2222
sleep 3m
23-
rm /tmp/TTAA.$id.lock
23+
rm -f /tmp/TTAA.$id.lock
2424
}
2525
# Get list of active torrents
2626
ids="$(transmission-remote --auth="$auth" --list | grep -vE 'Seeding|Stopped|Finished' | grep '^ ' | awk '{ print $1 }')"

transmission-tracker-add.service

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ Requires=network.target
66
Type=simple
77
ExecStart=/opt/bin/add_trackers_auto.sh
88
ExecStop=/bin/kill -s TERM $MAINPID
9+
ExecStopPost=/bin/rm -f /tmp/TTAA.*.lock
910
KillMode=control-group
1011

1112
[Install]

0 commit comments

Comments
 (0)