fix systemd service #2

This commit is contained in:
AndrewMarchukov 2017-10-16 13:32:31 +03:00
parent 42c1fa9da5
commit c55c70ba8d
2 changed files with 2 additions and 1 deletions

View file

@ -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 }')"

View file

@ -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]