From d1e4c8fee500324ea69415924382843f33a8166a Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Mon, 13 Aug 2018 09:43:58 +0200 Subject: ... --- custom/tinc/def.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'custom') diff --git a/custom/tinc/def.nix b/custom/tinc/def.nix index 7e7e83b2..bbf9f483 100644 --- a/custom/tinc/def.nix +++ b/custom/tinc/def.nix @@ -151,7 +151,7 @@ in case "''${2}" in (?(vpn-)up) - ${data.package}/bin/tinc -n ${network} --pidfile /run/tinc.${network}.pid retry + ${data.package}/bin/tinc -n ${network} --pidfile /run/tinc.${network}.pid --batch retry ;; esac ''; @@ -168,6 +168,9 @@ in serviceConfig = { Type = "simple"; PIDFile = "/run/tinc.${network}.pid"; + ExecStartPre = '' + ${data.package}/bin/tinc -n ${network} --pidfile /run/tinc.${network}.pid --batch fsck + ''; ExecStart = '' ${data.package}/bin/tincd -D -U tinc.${network} -n ${network} --pidfile /run/tinc.${network}.pid -d ${toString data.debugLevel} ''; -- cgit v1.2.3