blob: 945e7eda9a33126ac98971a1455883b6f482f55a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
[Unit]
Description=rTorrent
Requires=openvpn-client@secure.service
[Service]
Type=forking
User=%i
EnvironmentFile=/etc/default/rtorrent@.conf
ExecStartPre=/usr/bin/mkdir -p $TMUX_TMPDIR
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
NoNewPrivileges=yes
PrivateTmp=yes
ProtectSystem=strict
ProtectKernelTunables=true
ProtectControlGroups=true
[Install]
WantedBy=default.target
|