Update install_rtorrent.py

This commit is contained in:
gru
2026-05-13 14:20:55 +02:00
parent e21eb9e23a
commit 804f150983

View File

@@ -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)