summaryrefslogtreecommitdiff
path: root/custom
diff options
context:
space:
mode:
Diffstat (limited to 'custom')
-rw-r--r--custom/tinc/def.nix5
1 files changed, 4 insertions, 1 deletions
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
151 151
152 case "''${2}" in 152 case "''${2}" in
153 (?(vpn-)up) 153 (?(vpn-)up)
154 ${data.package}/bin/tinc -n ${network} --pidfile /run/tinc.${network}.pid retry 154 ${data.package}/bin/tinc -n ${network} --pidfile /run/tinc.${network}.pid --batch retry
155 ;; 155 ;;
156 esac 156 esac
157 ''; 157 '';
@@ -168,6 +168,9 @@ in
168 serviceConfig = { 168 serviceConfig = {
169 Type = "simple"; 169 Type = "simple";
170 PIDFile = "/run/tinc.${network}.pid"; 170 PIDFile = "/run/tinc.${network}.pid";
171 ExecStartPre = ''
172 ${data.package}/bin/tinc -n ${network} --pidfile /run/tinc.${network}.pid --batch fsck
173 '';
171 ExecStart = '' 174 ExecStart = ''
172 ${data.package}/bin/tincd -D -U tinc.${network} -n ${network} --pidfile /run/tinc.${network}.pid -d ${toString data.debugLevel} 175 ${data.package}/bin/tincd -D -U tinc.${network} -n ${network} --pidfile /run/tinc.${network}.pid -d ${toString data.debugLevel}
173 ''; 176 '';