From 5f5b00137c6f7b51eee6cc8d06373cd32728bac5 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Sat, 28 Oct 2017 23:33:34 +0200 Subject: poke tinc --- custom/tinc/def.nix | 4 ++-- 1 file 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 restartTriggers = [ config.environment.etc."tinc/${network}/tinc.conf".source ] ++ mapAttrsToList (host: _ : config.environment.etc."tinc/${network}/hosts/${host}".source) data.hosts; serviceConfig = { - Type = "simple"; + Type = "forking"; PIDFile = "/run/tinc.${network}.pid"; }; preStart = '' @@ -163,7 +163,7 @@ in fi ''; script = '' - tincd -D -U tinc.${network} -n ${network} --pidfile /run/tinc.${network}.pid -d ${toString data.debugLevel} + tincd -L -U tinc.${network} -n ${network} --pidfile /run/tinc.${network}.pid -d ${toString data.debugLevel} ''; }) ); -- cgit v1.2.3