diff options
author | Volth <volth@webmaster.ms> | 2017-07-27 13:17:13 +0000 |
---|---|---|
committer | Robin Gloster <mail@glob.in> | 2017-07-27 18:04:33 +0200 |
commit | 688dc4e4c3fd76cc77c75839082631d88c942794 (patch) | |
tree | 1628016d934ae978211f130afda6c62301763d1c /nixos/modules/services/networking | |
parent | 4456076bc72c8be3e425a0349e4bd768e474130d (diff) | |
download | nixlib-688dc4e4c3fd76cc77c75839082631d88c942794.tar nixlib-688dc4e4c3fd76cc77c75839082631d88c942794.tar.gz nixlib-688dc4e4c3fd76cc77c75839082631d88c942794.tar.bz2 nixlib-688dc4e4c3fd76cc77c75839082631d88c942794.tar.lz nixlib-688dc4e4c3fd76cc77c75839082631d88c942794.tar.xz nixlib-688dc4e4c3fd76cc77c75839082631d88c942794.tar.zst nixlib-688dc4e4c3fd76cc77c75839082631d88c942794.zip |
tinc_pre: avoid infinite loop with EBADFD on network restart
Diffstat (limited to 'nixos/modules/services/networking')
-rw-r--r-- | nixos/modules/services/networking/tinc.nix | 3 |
1 files changed, 2 insertions, 1 deletions
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 |