fuuko/torrent: Make socat work after forced stop
This should improve behavour after e.g. a power outage.
This commit is contained in:
parent
54610a130a
commit
10ced7f2bb
|
@ -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";
|
||||
|
||||
|
|
Loading…
Reference in a new issue