dante service: restart only on failure
Normal exit code shouldn't result in a restart.
commitbd140fb41d5123a06568a98589271a23b6f0c398
authorNikolay Amiantov <ab@fmap.me>
dateMon 16 Apr 2018, 15:14 (9 years ago)
parent1f11248
nixos/modules/services/networking/dante.nix+2−1
@@ -54,7 +54,8 @@ in
5454 Type = "simple";
5555 ExecStart = "${pkgs.dante}/bin/sockd -f ${confFile}";
5656 ExecReload = "${pkgs.coreutils}/bin/kill -HUP $MAINPID";
57− Restart = "always";
57+ # Can crash sometimes; see https://github.com/NixOS/nixpkgs/pull/39005#issuecomment-381828708
58+ Restart = "on-failure";
5859 };
5960 };
6061 };