fuuko/torrent: Make socat work after forced stop

This should improve behavour after e.g. a power outage.
This commit is contained in:
Simon Bruder 2021-05-03 09:06:46 +02:00
parent 54610a130a
commit 10ced7f2bb
Signed by: simon
GPG key ID: 8D3C82F9F309F8EC

View file

@ -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";