summaryrefslogtreecommitdiff
path: root/custom/tinc
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2018-08-16 10:35:33 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2018-08-16 10:35:33 +0200
commit9101c13ec86752891c82eb870985abc08ea71789 (patch)
tree0cfe1f2bde09e7f50dc078bd3bc47c3ae57d96f2 /custom/tinc
parent226ddeec8459f0fc32da5a1951f9dbc40c2b4877 (diff)
downloadnixos-9101c13ec86752891c82eb870985abc08ea71789.tar
nixos-9101c13ec86752891c82eb870985abc08ea71789.tar.gz
nixos-9101c13ec86752891c82eb870985abc08ea71789.tar.bz2
nixos-9101c13ec86752891c82eb870985abc08ea71789.tar.xz
nixos-9101c13ec86752891c82eb870985abc08ea71789.zip
Restart tinc on failure
Diffstat (limited to 'custom/tinc')
-rw-r--r--custom/tinc/def.nix1
1 files changed, 1 insertions, 0 deletions
diff --git a/custom/tinc/def.nix b/custom/tinc/def.nix
index 0129f251..22aca9ea 100644
--- a/custom/tinc/def.nix
+++ b/custom/tinc/def.nix
@@ -172,6 +172,7 @@ in
172 ExecStart = '' 172 ExecStart = ''
173 ${data.package}/bin/tincd -D -U tinc.${network} -n ${network} --pidfile /run/tinc.${network}.pid -d ${toString data.debugLevel} 173 ${data.package}/bin/tincd -D -U tinc.${network} -n ${network} --pidfile /run/tinc.${network}.pid -d ${toString data.debugLevel}
174 ''; 174 '';
175 Restart = "on-failure";
175 }; 176 };
176 preStart = '' 177 preStart = ''
177 mkdir -p /etc/tinc/${network}/hosts 178 mkdir -p /etc/tinc/${network}/hosts