Update install_rtorrent.py

This commit is contained in:
gru
2026-05-15 07:53:45 +02:00
parent decce46378
commit e602319921

View File

@@ -480,7 +480,7 @@ def install_symlinks(rtorrent_install, libtorrent_install, xmlrpc_install, curl_
def write_service(service_path, binary_path, runtime_lib_dirs): def write_service(service_path, binary_path, runtime_lib_dirs):
service_content = f"""[Unit] service_content = f"""[Unit]
Description=rTorrent for %I Description=rTorrent for %I | https://git.linuxiarz.pl/gru/tools_scripts/_edit/master/install_rtorrent.py
After=network.target After=network.target
[Service] [Service]
@@ -495,8 +495,7 @@ KillSignal=SIGTERM
TimeoutStopSec=300 TimeoutStopSec=300
Restart=always Restart=always
RestartSec=3 RestartSec=3
LimitNOFILE=262144 LimitNOFILE=1048576
Environment=LD_LIBRARY_PATH={runtime_lib_dirs} Environment=LD_LIBRARY_PATH={runtime_lib_dirs}
[Install] [Install]
@@ -529,8 +528,8 @@ protocol.pex.set = no
trackers.use_udp.set = no trackers.use_udp.set = no
protocol.encryption.set = allow_incoming,enable_retry,prefer_plaintext protocol.encryption.set = allow_incoming,enable_retry,prefer_plaintext
schedule2 = tied_directory,6,5,start_tied= #schedule2 = tied_directory,6,5,start_tied=
schedule2 = untied_directory,7,5,stop_untied= #schedule2 = untied_directory,7,5,stop_untied=
schedule2 = session_save,300,300,((session.save)) schedule2 = session_save,300,300,((session.save))
schedule2 = watch_directory,60,60,load.normal=/home/{username}/watch/*.torrent schedule2 = watch_directory,60,60,load.normal=/home/{username}/watch/*.torrent
@@ -540,7 +539,7 @@ network.http.max_open.set = 64
network.max_open_sockets.set = 8192 network.max_open_sockets.set = 8192
network.max_open_files.set = 32768 network.max_open_files.set = 32768
network.http.dns_cache_timeout.set = 0 network.http.dns_cache_timeout.set = 0
pieces.memory.max.set = 1800M #pieces.memory.max.set = 1800M
""".lstrip() """.lstrip()