From 804f1509837332a264dd78793bcc7260caf7e146 Mon Sep 17 00:00:00 2001 From: gru Date: Wed, 13 May 2026 14:20:55 +0200 Subject: [PATCH] Update install_rtorrent.py --- install_rtorrent.py | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/install_rtorrent.py b/install_rtorrent.py index a5cf43a..1f31edd 100644 --- a/install_rtorrent.py +++ b/install_rtorrent.py @@ -491,9 +491,12 @@ KillMode=process WorkingDirectory=/home/%I ExecStartPre=-/bin/rm -f /home/%I/.session/rtorrent.lock ExecStart={binary_path} -o system.daemon.set=true -n -o import=/home/%I/.rtorrent.rc -ExecStop=/bin/kill -9 $MAINPID +KillSignal=SIGTERM +TimeoutStopSec=300 Restart=always RestartSec=3 +LimitNOFILE=262144 + Environment=LD_LIBRARY_PATH={runtime_lib_dirs} [Install] @@ -524,11 +527,18 @@ dht.mode.set = disable protocol.pex.set = no trackers.use_udp.set = no protocol.encryption.set = allow_incoming,enable_retry,prefer_plaintext -schedule2 = session_save,1200,43200,((session.save)) + schedule2 = tied_directory,6,5,start_tied= schedule2 = untied_directory,7,5,stop_untied= -schedule2 = watch_directory,5,5,load.normal=/home/rtorrent/watch/*.torrent +schedule2 = session_save,600,1800,((session.save)) ratio.max.set=-1 +network.xmlrpc.size_limit.set = 33554432 +network.http.max_open.set = 32 +network.max_open_sockets.set = 2048 +network.max_open_files.set = 4096 +network.http.dns_cache_timeout.set = 3600 + + """ config_path.write_text(config_content) shutil.chown(config_path, user=username, group=username)