From 76479d0b372c28bf8a8e0beaa4bdf081b24f15e3 Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Tue, 21 Dec 2021 18:28:02 +0100 Subject: [PATCH] fuuko/torrent: Increase the open file limit of aria2 The previous attempt in 427361df65a8125e496b4f1fdbeacb167109a448 did increase the open file limit, but for the wrong service. --- machines/fuuko/services/torrent.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/machines/fuuko/services/torrent.nix b/machines/fuuko/services/torrent.nix index 4c482de..f603554 100644 --- a/machines/fuuko/services/torrent.nix +++ b/machines/fuuko/services/torrent.nix @@ -61,9 +61,6 @@ let User = "aria2"; Group = "nginx"; - # Increase number of open file descriptors (default: 1024) - LimitNOFILE = 65536; - # systemd-analyze --no-pager security aria2-rpc-proxy.service CapabilityBoundingSet = null; PrivateDevices = true; @@ -124,6 +121,9 @@ in User = "aria2"; Group = "aria2"; + # Increase number of open file descriptors (default: 1024) + LimitNOFILE = 65536; + # systemd-analyze --no-pager security aria2.service CapabilityBoundingSet = null; PrivateDevices = true;