Update install_rtorrent.py
This commit is contained in:
@@ -480,7 +480,7 @@ def install_symlinks(rtorrent_install, libtorrent_install, xmlrpc_install, curl_
|
||||
|
||||
def write_service(service_path, binary_path, runtime_lib_dirs):
|
||||
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
|
||||
|
||||
[Service]
|
||||
@@ -495,8 +495,7 @@ KillSignal=SIGTERM
|
||||
TimeoutStopSec=300
|
||||
Restart=always
|
||||
RestartSec=3
|
||||
LimitNOFILE=262144
|
||||
|
||||
LimitNOFILE=1048576
|
||||
Environment=LD_LIBRARY_PATH={runtime_lib_dirs}
|
||||
|
||||
[Install]
|
||||
@@ -529,8 +528,8 @@ protocol.pex.set = no
|
||||
trackers.use_udp.set = no
|
||||
protocol.encryption.set = allow_incoming,enable_retry,prefer_plaintext
|
||||
|
||||
schedule2 = tied_directory,6,5,start_tied=
|
||||
schedule2 = untied_directory,7,5,stop_untied=
|
||||
#schedule2 = tied_directory,6,5,start_tied=
|
||||
#schedule2 = untied_directory,7,5,stop_untied=
|
||||
schedule2 = session_save,300,300,((session.save))
|
||||
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_files.set = 32768
|
||||
network.http.dns_cache_timeout.set = 0
|
||||
pieces.memory.max.set = 1800M
|
||||
#pieces.memory.max.set = 1800M
|
||||
""".lstrip()
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user