aboutsummaryrefslogtreecommitdiffstats
path: root/system/rtorrent@.service
blob: b6b6b405d6fa60c4a0701c7cd99c7f7def1676d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
[Unit]
Description=rTorrent
Requires=openvpn@ipredator.service

[Service]
Type=forking
KillMode=control-group
User=%i
EnvironmentFile/etc/uenv/rtorrent@.conf
ExecStartPre=/usr/bin/mkdir -p /home/%i/Downloads/rtorrent/tmp
ExecStartPre=/usr/bin/mkdir -p /home/%i/Downloads/rtorrent/session
ExecStart=/usr/bin/tmux -L rt new-session -s rt -n rtorrent -d rtorrent
ExecStop=/usr/bin/tmux -L rt send-keys -t rt:rtorrent C-q
WorkingDirectory=/home/%i/Downloads/
Restart=on-failure

[Install]
WantedBy=default.target