summary refs log tree commit diff
path: root/nixos/modules/services/networking/tinc.nix
diff options
context:
space:
mode:
authorvolth <volth@webmaster.ms>2017-08-09 22:35:20 +0000
committerGitHub <noreply@github.com>2017-08-09 22:35:20 +0000
commitb32b18631e94ebbb0e6f201db24b6b541b901f89 (patch)
treeb22d8766dda366318bf76b6b89f401037e61f49b /nixos/modules/services/networking/tinc.nix
parent7e5332c86870336706f51faca50ea5a1b3e9bad5 (diff)
downloadnixpkgs-b32b18631e94ebbb0e6f201db24b6b541b901f89.tar
nixpkgs-b32b18631e94ebbb0e6f201db24b6b541b901f89.tar.gz
nixpkgs-b32b18631e94ebbb0e6f201db24b6b541b901f89.tar.bz2
nixpkgs-b32b18631e94ebbb0e6f201db24b6b541b901f89.tar.lz
nixpkgs-b32b18631e94ebbb0e6f201db24b6b541b901f89.tar.xz
nixpkgs-b32b18631e94ebbb0e6f201db24b6b541b901f89.tar.zst
nixpkgs-b32b18631e94ebbb0e6f201db24b6b541b901f89.zip
nixos/tinc: do not tell systemd where is pidfile
```Tinc```'s pid file has more info than just a pid

```
# cat /run/tinc.dmz.pid
12209 7BD4A657B4A04364D268D188A0F4AA972A05247D802149246BBE1F1E689CABA1 127.0.0.1 port 656
```
so ```systemd``` fails to parse it.
It results in long (re)start times when ```systemd``` waits for a correct pid file to appear.
Diffstat (limited to 'nixos/modules/services/networking/tinc.nix')
-rw-r--r--nixos/modules/services/networking/tinc.nix1
1 files changed, 0 insertions, 1 deletions
diff --git a/nixos/modules/services/networking/tinc.nix b/nixos/modules/services/networking/tinc.nix
index 7410908b735..7a786b54ccb 100644
--- a/nixos/modules/services/networking/tinc.nix
+++ b/nixos/modules/services/networking/tinc.nix
@@ -166,7 +166,6 @@ in
         path = [ data.package ];
         serviceConfig = {
           Type = "simple";
-          PIDFile = "/run/tinc.${network}.pid";
           Restart = "always";
           RestartSec = "3";
         };