Skip to content

Instantly share code, notes, and snippets.

@DSpeichert
Last active December 13, 2015 14:22
Show Gist options
  • Save DSpeichert/bbbbc636fbed2bc356b3 to your computer and use it in GitHub Desktop.
Save DSpeichert/bbbbc636fbed2bc356b3 to your computer and use it in GitHub Desktop.
rTorrent config on Arch Linux
port_range = 39152-65535
scgi_port = 127.0.0.1:5000
encryption = allow_incoming,try_outgoing,enable_retry,prefer_plaintext
session = /home/rtorrent/.session/
directory = /home/rtorrent/files/
#http_capath=/etc/ssl/certs/
#safe_sync = yes
#check_hash = no
#hash_interval = 10
network.http.ssl_verify_peer.set=0
schedule = low_diskspace,5,60,close_low_diskspace=1G
max_downloads_global = 100
max_uploads_global = 100
log.open_file = "rtorrent", ~/rtorrent.log
log.add_output = "critical", "rtorrent"
log.add_output = "error", "rtorrent"
log.add_output = "warn", "rtorrent"
log.add_output = "notice", "rtorrent"
log.add_output = "info", "rtorrent"
[Unit]
Description=rTorrent Daemon
After=network.target
[Service]
Type=forking
KillMode=none
User=rtorrent
ExecStart=/usr/bin/tmux new-session -c /home/rtorrent -s rtorrent -n rtorrent -d rtorrent
ExecStop=/usr/bin/tmux send-keys -t rtorrent C-q && /usr/bin/tmux kill-session -t rtorrent
WorkingDirectory=/home/rtorrent/
Restart=on-failure
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment