summaryrefslogtreecommitdiff
path: root/net-p2p/rtorrent/files/rtorrentd_at-r1.service
blob: bc9220353786000559f90cd7be43be3dea8da705 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# This configuration file is taken from the Arch wiki.
# https://wiki.archlinux.org/title/RTorrent#Systemd_service_as_a_daemon_for_a_user

[Unit]
Description=rTorrent for %i
After=network.target

[Service]
Type=simple
User=%i
Group=%i
WorkingDirectory=/home/%i
# Modify the next line to the absolute path for rtorrent.lock, for example
ExecStartPre=-/bin/rm -f /home/%i/.session/rtorrent.lock
ExecStart=/usr/bin/rtorrent -o system.daemon.set=true
Restart=on-failure
RestartSec=3