Created
February 16, 2015 04:08
-
-
Save lanrat/35ccd42f0b70e95bfa6e to your computer and use it in GitHub Desktop.
rtorrent configuration
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maximum and minimum number of peers to connect to per torrent. | |
min_peers = 40 | |
max_peers = 64 | |
# Same as above but for seeding completed torrents (-1 = same as downloading) | |
min_peers_seed = 1 | |
max_peers_seed = 1 | |
# Maximum number of simultanious uploads per torrent. | |
max_uploads = 10 | |
# Maximum number of simultaneous downloads | |
max_downloads_global = 30 | |
# Maximum number of simultaneous uploads | |
max_uploads_global = 20 | |
# Global upload and download rate in KiB. "0" for unlimited. | |
download_rate = 0 | |
upload_rate = 512 | |
# memory limit | |
max_memory_usage = 512M | |
# Default directory to save the downloaded torrents. | |
schedule = mkincomplete,0,0,"execute=mkdir,-p,/rtorrent/incomplete" | |
directory = /rtorrent/incomplete | |
# Periodically save session data | |
schedule = session_save,240,300,session_save= | |
# Default session directory. Make sure you don't run multiple instance | |
# of rtorrent using the same session directory. Perhaps using a | |
# relative path? | |
schedule = mksession,0,0,"execute=mkdir,-p,/rtorrent/session" | |
session = /rtorrent/session | |
# Controls if the session torrent is saved when a torrent finishes. By default on. | |
#session_on_completion = yes #deprecated? | |
# Controls if a lock file is created in the session directory on startup. | |
#session_lock = yes | |
# Close torrents when diskspace is low. | |
schedule = low_diskspace,5,60,close_low_diskspace=100M | |
# The ip address reported to the tracker. | |
#ip = 127.0.0.1 | |
# The ip address the listening socket and outgoing connections is | |
# bound to. | |
#bind = 127.0.0.1 | |
# specify port to bind to | |
port_range = 49165-49265 | |
# Start opening ports at a random position within the port range. | |
port_random = yes | |
# Check hash for finished torrents. Might be usefull until the bug is | |
# fixed that causes lack of diskspace not to be properly reported. | |
# dont check torrent hasn on completion (too much disk io) | |
#hash_check = no | |
# Set whether the client should try to connect to UDP trackers. | |
use_udp_trackers = yes | |
# Set to no to disable all tracker requests. Useful for disabling rtorrent with the schedule command. | |
#enable_trackers = yes | |
# Encryption options, set to none (default) or any combination of the following: | |
# allow_incoming, try_outgoing, require, require_RC4, enable_retry, prefer_plaintext | |
# | |
# Perfer encryption | |
encryption = allow_incoming,try_outgoing,enable_retry | |
# Enable DHT support for trackerless torrents or when all trackers are down. | |
# May be set to "disable" (completely disable DHT), "off" (do not start DHT), | |
# "auto" (start and stop DHT as needed), or "on" (start DHT immediately). | |
# The default is "off". For DHT to work, a session directory must be defined. | |
# | |
dht = on | |
# UDP port to use for DHT. | |
# | |
#dht_port = 9527 | |
# Enable peer exchange (for torrents not marked private) | |
# | |
peer_exchange = yes | |
# Preallocate files; reduces defragmentation on filesystems. | |
system.file_allocate.set = yes | |
# Encoding | |
encoding_list = UTF-8 | |
# Log to file | |
log.open_file = "rtorrent", /rtorrent/rtorrent.log | |
log.add_output = "debug", "rtorrent" | |
# For ruTorrent | |
#execute_nothrow = rm,/rtorrent/rpc.socket | |
#scgi_local = /rtorrent/rpc.socket | |
#schedule = mksocket,0,0,"execute=chmod,777,/rtorrent/rpc.socket" | |
scgi_port = 127.0.0.1:5000 | |
# Stop torrents when reaching upload ratio in percent, | |
# when also reaching total upload in bytes, or when | |
# reaching final upload ratio in percent. | |
# AKA disable most seeding | |
ratio.enable= | |
ratio.min.set=0 | |
ratio.max.set=1 | |
ratio.upload.set=1b | |
# When the torrent finishes, it executes "mv <base_path> /rtorrent/done/" and then | |
# sets the destination directory to "/rtorrent/done/". | |
schedule = mkdone,0,0,"execute=mkdir,-p,/rtorrent/done" | |
system.method.set_key = event.download.finished,move_complete,"d.set_directory=/rtorrent/done/;execute=mv,-u,$d.get_base_path=,/rtorrent/done/" | |
# can add $d.close to remove it from rtorrent | |
#trackers to add | |
#udp://tracker.publicbt.com:80 | |
#udp://tracker.openbittorrent.com:80 | |
#udp://tracker.coppersurfer.tk:6969 | |
#udp://tracker.leechers-paradise.org:6969 | |
#udp://open.demonii.com:1337 | |
# Start plugins with rtorrent | |
# be sure to change the paths to match the system | |
execute = {sh,-c,/usr/bin/php /rtorrent/rutorrent/php/initplugins.php &} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[program:rtorrent] | |
user=lanrat | |
directory=/rtorrent | |
autostart=true | |
autorestart=true | |
startretries=3 | |
command=rtorrent -n -o import=rtorrent.rc | |
startsecs=5 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment