[Unit]
Description=rTorrent daemon
After=network-online.target

[Service]
User=rtorrent
Group=rtorrent
Type=simple
KillMode=process
ExecStartPre=/usr/lib/rtorrent/cleanlock
ExecStart=/usr/bin/rtorrent -n -o import=/etc/rtorrent/rtorrent.conf
TimeoutStopSec=30
Restart=on-failure

[Install]
WantedBy=multi-user.target