From 688dc4e4c3fd76cc77c75839082631d88c942794 Mon Sep 17 00:00:00 2001 From: Volth Date: Thu, 27 Jul 2017 13:17:13 +0000 Subject: tinc_pre: avoid infinite loop with EBADFD on network restart --- nixos/modules/services/networking/tinc.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'nixos/modules/services/networking') diff --git a/nixos/modules/services/networking/tinc.nix b/nixos/modules/services/networking/tinc.nix index 42341b2d4123..31a588318f6a 100644 --- a/nixos/modules/services/networking/tinc.nix +++ b/nixos/modules/services/networking/tinc.nix @@ -169,7 +169,8 @@ in serviceConfig = { Type = "simple"; PIDFile = "/run/tinc.${network}.pid"; - Restart = "on-failure"; + Restart = "always"; + RestartSec = "3"; }; preStart = '' mkdir -p /etc/tinc/${network}/hosts -- cgit 1.4.1