fix systemd service #2
This commit is contained in:
parent
42c1fa9da5
commit
c55c70ba8d
2 changed files with 2 additions and 1 deletions
|
@ -20,7 +20,7 @@ fi
|
|||
done
|
||||
done
|
||||
sleep 3m
|
||||
rm /tmp/TTAA.$id.lock
|
||||
rm -f /tmp/TTAA.$id.lock
|
||||
}
|
||||
# Get list of active torrents
|
||||
ids="$(transmission-remote --auth="$auth" --list | grep -vE 'Seeding|Stopped|Finished' | grep '^ ' | awk '{ print $1 }')"
|
||||
|
|
|
@ -6,6 +6,7 @@ Requires=network.target
|
|||
Type=simple
|
||||
ExecStart=/opt/bin/add_trackers_auto.sh
|
||||
ExecStop=/bin/kill -s TERM $MAINPID
|
||||
ExecStopPost=/bin/rm -f /tmp/TTAA.*.lock
|
||||
KillMode=control-group
|
||||
|
||||
[Install]
|
||||
|
|
Loading…
Add table
Reference in a new issue