From 10ced7f2bb44fb6efb6899722c7ed28449b0ebfc Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Mon, 3 May 2021 09:06:46 +0200 Subject: [PATCH] fuuko/torrent: Make socat work after forced stop This should improve behavour after e.g. a power outage. --- machines/fuuko/services/torrent.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/machines/fuuko/services/torrent.nix b/machines/fuuko/services/torrent.nix index 1c209dc..af42c75 100644 --- a/machines/fuuko/services/torrent.nix +++ b/machines/fuuko/services/torrent.nix @@ -69,7 +69,7 @@ let NetworkNamespacePath = "/run/netns/aria2"; Restart = "always"; - ExecStart = "${pkgs.socat}/bin/socat UNIX-LISTEN:${socket},fork,reuseaddr,mode=660 TCP:127.0.0.1:${toString port}"; + ExecStart = "${pkgs.socat}/bin/socat UNIX-LISTEN:${socket},fork,reuseaddr,mode=660,unlink-early TCP:127.0.0.1:${toString port}"; User = "aria2"; Group = "nginx";