diff options
-rw-r--r-- | custom/tinc/def.nix | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/custom/tinc/def.nix b/custom/tinc/def.nix index 563335ad..2cdf1b01 100644 --- a/custom/tinc/def.nix +++ b/custom/tinc/def.nix | |||
@@ -144,7 +144,7 @@ in | |||
144 | restartTriggers = [ config.environment.etc."tinc/${network}/tinc.conf".source ] | 144 | restartTriggers = [ config.environment.etc."tinc/${network}/tinc.conf".source ] |
145 | ++ mapAttrsToList (host: _ : config.environment.etc."tinc/${network}/hosts/${host}".source) data.hosts; | 145 | ++ mapAttrsToList (host: _ : config.environment.etc."tinc/${network}/hosts/${host}".source) data.hosts; |
146 | serviceConfig = { | 146 | serviceConfig = { |
147 | Type = "simple"; | 147 | Type = "forking"; |
148 | PIDFile = "/run/tinc.${network}.pid"; | 148 | PIDFile = "/run/tinc.${network}.pid"; |
149 | }; | 149 | }; |
150 | preStart = '' | 150 | preStart = '' |
@@ -163,7 +163,7 @@ in | |||
163 | fi | 163 | fi |
164 | ''; | 164 | ''; |
165 | script = '' | 165 | script = '' |
166 | tincd -D -U tinc.${network} -n ${network} --pidfile /run/tinc.${network}.pid -d ${toString data.debugLevel} | 166 | tincd -L -U tinc.${network} -n ${network} --pidfile /run/tinc.${network}.pid -d ${toString data.debugLevel} |
167 | ''; | 167 | ''; |
168 | }) | 168 | }) |
169 | ); | 169 | ); |