# This is an example resource file for rTorrent. Copy to
# ~/.rtorrent.rc and enable/modify the options as needed. Remember to
# uncomment the options you wish to enable.
# Maximum and minimum number of peers to connect to per torrent.
min_peers = 10
max_peers = 100
# Same as above but for seeding completed torrents (-1 = same as downloading)
min_peers_seed = 10
max_peers_seed = 200
# Maximum number of simultanious uploads per torrent.
max_uploads = 50
# Global upload and download rate in KiB. "0" for unlimited.
download_rate = 0
upload_rate = 0
directory = /home/ben/rtorrent/files
session = /home/ben/rtorrent/session
schedule = watch_directory,5,5,load_start=/home/ben/rtorrent/watch/*.torrent
schedule = untied_directory,5,5,stop_untied=
# Stop torrents when reaching upload ratio in percent
#schedule = ratio,60,60,stop_on_ratio=200,200M,2000
# Port range to use for listening.
port_range = 40000-50000
check_hash = no
# Hash read-ahead controls how many MB to request the kernel to read
# ahead. If the value is too low the disk may not be fully utilized,
# while if too high the kernel might not be able to keep the read
# pages in memory thus end up trashing.
#hash_read_ahead = 10
# Interval between attempts to check the hash, in milliseconds.
#hash_interval = 100
# Number of attempts to check the hash while using the mincore status,
# before forcing. Overworked systems might need lower values to get a
# decent hash checking rate.
#hash_max_tries = 10
# Max number of files to keep open simultaniously. ### 128
max_open_files = 128
# Number of sockets to simultaneously keep open.
#max_open_sockets = <no default>
# Close torrents when diskspace is low.
schedule = low_diskspace,5,60,close_low_diskspace=1000M
# Encryption options, set to none (default) or any combination of the following:
encryption = allow_incoming,enable_retry,try_outgoing
###########################
# http://libtorrent.rakshasa.no/wiki/RTorrentCommonTasks
on_finished = move_complete,"execute=mv,-u,$d.get_base_path=,~/finished/ ;d.set_directory=~/finished/"
scgi_port = localhost:5000