From 8cab343a823e068725c0800fb0568e78732c6b47 Mon Sep 17 00:00:00 2001 From: LastElaphine Date: Sat, 17 Oct 2026 16:34:55 -0700 Subject: [PATCH] Update example configuration files to align with wiki template --- doc/rtorrent.rc | 10 +++++----- doc/rtorrent.rc-example | 24 +++++++++++++++--------- doc/rtorrent.rc.lua-example | 15 +++++---------- 3 files changed, 25 insertions(+), 24 deletions(-) diff --git a/doc/rtorrent.rc b/doc/rtorrent.rc index eceb12c4..831ce302 100644 --- a/doc/rtorrent.rc +++ b/doc/rtorrent.rc @@ -52,11 +52,11 @@ # watch directory. # #directory.watch.ready = ./watch, load.start -#schedule2 = watch_directory,5,5,load.start=./watch/*.torrent +#schedule = watch_directory,5,5,load.start=./watch/*.torrent # Close torrents when disk-space is low. # -#schedule2 = low_diskspace,5,60,close_low_diskspace=100M +#schedule = low_diskspace,5,60,close_low_diskspace=100M # The IP address reported to the tracker. # @@ -100,8 +100,8 @@ # Alternative calls to bind and IP that should handle dynamic IP's. # -#schedule2 = ip_tick,0,1800,ip=rakshasa -#schedule2 = bind_tick,0,1800,bind=rakshasa +#schedule = ip_tick,0,1800,ip=rakshasa +#schedule = bind_tick,0,1800,bind=rakshasa # Encryption options, set to none (default) or any combination of the following: # allow_incoming, try_outgoing, require, require_RC4, enable_retry, prefer_plaintext @@ -145,4 +145,4 @@ # #network.scgi.open_port = "127.0.0.1:5000" #network.scgi.open_local = (cat,(session.path),/rpc.sock) -#schedule2 = socket_chmod, 0, 0, "execute.nothrow=chmod,770,(cat,(session.path),/rpc.sock)" +#schedule = socket_chmod, 0, 0, "execute.nothrow=chmod,770,(cat,(session.path),/rpc.sock)" diff --git a/doc/rtorrent.rc-example b/doc/rtorrent.rc-example index 3778cf8e..d776b033 100644 --- a/doc/rtorrent.rc-example +++ b/doc/rtorrent.rc-example @@ -30,7 +30,6 @@ network.listen.port.random.set = no # (conservative settings for 'private' trackers, change for 'public') dht.mode.set = disable protocol.pex.set = no -trackers.use_udp.set = no # Peer settings throttle.max_uploads.set = 100 @@ -42,14 +41,22 @@ throttle.min_peers.seed.set = 30 throttle.max_peers.seed.set = 80 trackers.numwant.set = 80 -protocol.encryption.set = allow_incoming,try_outgoing,enable_retry +# Select encryption for handshake and connection: +# +# protocol.encryption.set = {deny,allow,prefer,require} +# protocol.encryption.set = handshake_{deny,allow,prefer,require}, stream_{deny,allow,prefer,require} +# +#protocol.encryption.set = deny +#protocol.encryption.set = require +#protocol.encryption.set = handshake_prefer, stream_deny +#protocol.encryption.set = handshake_require, stream_prefer # Limits for file handle resources, this is optimized for # an `ulimit` of 1024 (a common default). You MUST leave # a ceiling of handles reserved for rTorrent's internal needs! -network.http.max_open.set = 50 -network.max_open_files.set = 600 -network.max_open_sockets.set = 300 + +# Deprecated, see: https://github.com/rakshasa/rtorrent/wiki/Socket-Manager-and-Resource-Allocation + # Memory resource usage (increase if you have a large number of items loaded, # and/or the available resources to spend) @@ -65,11 +72,10 @@ execute.nothrow = sh, -c, (cat, "echo >",\ (session.path), "rtorrent.pid", " ", (system.pid)) # Other operational settings (check & adapt) -encoding.add = utf8 system.umask.set = 0027 system.cwd.set = (directory.default) network.http.dns_cache_timeout.set = 25 -schedule2 = monitor_diskspace, 15, 60, ((close_low_diskspace, 1000M)) +schedule = monitor_diskspace, 15, 60, ((close_low_diskspace, 1000M)) ##pieces.hash.on_completion.set = no ##view.sort_current = seeding, greater=d.ratio= ##keys.layout.set = qwerty @@ -88,8 +94,8 @@ method.insert = d.data_path, simple,\ method.insert = d.session_file, simple, "cat=(session.path), (d.hash), .torrent" # Watch directories (add more as you like, but use unique schedule names) -schedule2 = watch_start, 10, 10, ((load.start_verbose, (cat, (cfg.watch), "start/*.torrent"))) -schedule2 = watch_load, 11, 10, ((load.verbose, (cat, (cfg.watch), "load/*.torrent"))) +schedule = watch_start, 10, 10, ((load.start_verbose, (cat, (cfg.watch), "start/*.torrent"))) +schedule = watch_load, 11, 10, ((load.verbose, (cat, (cfg.watch), "load/*.torrent"))) # Run the rTorrent process as a daemon in the background # (and control via XMLRPC sockets) diff --git a/doc/rtorrent.rc.lua-example b/doc/rtorrent.rc.lua-example index 2339aba1..74dedf8f 100644 --- a/doc/rtorrent.rc.lua-example +++ b/doc/rtorrent.rc.lua-example @@ -60,7 +60,6 @@ rc.network.listen.port.random = false -- (conservative settings for 'private' trackers, change for 'public') rc.dht.mode = 'disable' rc.protocol.pex = false -rc.trackers.use_udp = false -- Peer settings rc.throttle.max_uploads = 100 @@ -72,14 +71,11 @@ rc.throttle.min_peers.seed = 30 rc.throttle.max_peers.seed = 80 rc.trackers.numwant = 80 -rc.protocol.encryption.set('allow_incoming', 'try_outgoing', 'enable_retry') - -- Limits for file handle resources, this is optimized for -- an `ulimit` of 1024 (a common default). You MUST leave -- a ceiling of handles reserved for rTorrent's internal needs! -rc.network.http.max_open = 50 -rc.network.max_open_files = 600 -rc.network.max_open_sockets = 300 + +-- Deprecated, see: https://github.com/rakshasa/rtorrent/wiki/Socket-Manager-and-Resource-Allocation -- Memory resource usage (increase if you have a large number of items loaded, -- and/or the available resources to spend) @@ -97,11 +93,10 @@ rc.execute.nothrow( })) -- Other operational settings (check & adapt) -rc.encoding.add('utf8') rc.system.umask = 0027 rc.system.cwd = rc.directory.default() rc.network.http.dns_cache_timeout = 25 -rc.schedule2('monitor_diskspace', '15', '60', 'close_low_diskspace=1000M') +rc.schedule('monitor_diskspace', '15', '60', 'close_low_diskspace=1000M') --rc.pieces.hash.on_completion = false --rc.view.sort_current('seeding', 'greater=d.ratio=') --rc.keys.layout = 'qwerty' @@ -121,8 +116,8 @@ rc.method.insert('d.data_path', 'simple', rc.method.insert('d.session_file', 'simple', 'cat=(session.path), (d.hash), .torrent') -- Watch directories (add more as you like, but use unique schedule names) -rc.schedule2('watch_start', '10', '10', 'load.start_verbose=(cat, (cfg.watch), "start/*.torrent")') -rc.schedule2('watch_load', '11', '10', 'load.verbose=(cat, (cfg.watch), "load/*.torrent")') +rc.schedule('watch_start', '10', '10', 'load.start_verbose=(cat, (cfg.watch), "start/*.torrent")') +rc.schedule('watch_load', '11', '10', 'load.verbose=(cat, (cfg.watch), "load/*.torrent")') -- Run the rTorrent process as a daemon in the background -- (and control via XMLRPC sockets)