diff options
author | Nikolay Amiantov <ab@fmap.me> | 2018-04-16 15:14:13 +0300 |
---|---|---|
committer | Nikolay Amiantov <ab@fmap.me> | 2018-04-26 13:57:11 +0300 |
commit | bd140fb41d5123a06568a98589271a23b6f0c398 (patch) | |
tree | 81350ab4fc9da34068ae55e03d86be40c5bf32c9 /nixos/modules/services | |
parent | 1f1124859d9cbb705b60d8c012a7af61ab4abf94 (diff) |
dante service: restart only on failure
Normal exit code shouldn't result in a restart.
Diffstat (limited to 'nixos/modules/services')
-rw-r--r-- | nixos/modules/services/networking/dante.nix | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/nixos/modules/services/networking/dante.nix b/nixos/modules/services/networking/dante.nix index 32acce51e692a..67da28308e9a2 100644 --- a/nixos/modules/services/networking/dante.nix +++ b/nixos/modules/services/networking/dante.nix @@ -54,7 +54,8 @@ in Type = "simple"; ExecStart = "${pkgs.dante}/bin/sockd -f ${confFile}"; ExecReload = "${pkgs.coreutils}/bin/kill -HUP $MAINPID"; - Restart = "always"; + # Can crash sometimes; see https://github.com/NixOS/nixpkgs/pull/39005#issuecomment-381828708 + Restart = "on-failure"; }; }; }; |