From 9101c13ec86752891c82eb870985abc08ea71789 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Thu, 16 Aug 2018 10:35:33 +0200 Subject: Restart tinc on failure --- custom/tinc/def.nix | 1 + 1 file changed, 1 insertion(+) (limited to 'custom/tinc') 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 ExecStart = '' ${data.package}/bin/tincd -D -U tinc.${network} -n ${network} --pidfile /run/tinc.${network}.pid -d ${toString data.debugLevel} ''; + Restart = "on-failure"; }; preStart = '' mkdir -p /etc/tinc/${network}/hosts -- cgit v1.2.3