summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorNikolay Amiantov <ab@fmap.me>2018-04-16 15:14:13 +0300
committerNikolay Amiantov <ab@fmap.me>2018-04-26 13:57:11 +0300
commitbd140fb41d5123a06568a98589271a23b6f0c398 (patch)
tree81350ab4fc9da34068ae55e03d86be40c5bf32c9 /nixos
parent1f1124859d9cbb705b60d8c012a7af61ab4abf94 (diff)
downloadnixpkgs-bd140fb41d5123a06568a98589271a23b6f0c398.tar
nixpkgs-bd140fb41d5123a06568a98589271a23b6f0c398.tar.gz
nixpkgs-bd140fb41d5123a06568a98589271a23b6f0c398.tar.bz2
nixpkgs-bd140fb41d5123a06568a98589271a23b6f0c398.tar.lz
nixpkgs-bd140fb41d5123a06568a98589271a23b6f0c398.tar.xz
nixpkgs-bd140fb41d5123a06568a98589271a23b6f0c398.tar.zst
nixpkgs-bd140fb41d5123a06568a98589271a23b6f0c398.zip
dante service: restart only on failure
Normal exit code shouldn't result in a restart.
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/services/networking/dante.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/nixos/modules/services/networking/dante.nix b/nixos/modules/services/networking/dante.nix
index 32acce51e69..67da28308e9 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";
       };
     };
   };