summary refs log tree commit diff
path: root/nixos/modules/services/networking/dante.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixos/modules/services/networking/dante.nix')
-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 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";
       };
     };
   };