diff options
| author | figsoda <figsoda@pm.me> | 2023-04-18 13:57:28 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-04-18 13:57:28 -0400 |
| commit | 9548878eade4cb54733904b1a03c559be5b7938e (patch) | |
| tree | b599b49950d13dcd8e6af282c55c2d4314e733f3 | |
| parent | Merge pull request #226717 from risicle/ris-pgadmin-CVE-2023-0241-r22.11 (diff) | |
| parent | cachix-watch-store: restart indefinitely (diff) | |
| download | nixpkgs-9548878eade4cb54733904b1a03c559be5b7938e.tar.gz | |
Merge pull request #226876 from NixOS/backport-226831-to-release-22.11
[Backport release-22.11] cachix-watch-store: restart indefinitely
| -rw-r--r-- | nixos/modules/services/system/cachix-watch-store.nix | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/nixos/modules/services/system/cachix-watch-store.nix b/nixos/modules/services/system/cachix-watch-store.nix index ec73c0bcdcfe..b58e3e74d405 100644 --- a/nixos/modules/services/system/cachix-watch-store.nix +++ b/nixos/modules/services/system/cachix-watch-store.nix @@ -62,7 +62,13 @@ in after = [ "network-online.target" ]; path = [ config.nix.package ]; wantedBy = [ "multi-user.target" ]; + unitConfig = { + # allow to restart indefinitely + StartLimitIntervalSec = 0; + }; serviceConfig = { + # don't put too much stress on the machine when restarting + RestartSec = 1; # we don't want to kill children processes as those are deployments KillMode = "process"; Restart = "on-failure"; |
