Merge pull request #226831 from domenkozar/cachix-watch-store-restarts

cachix-watch-store: restart indefinitely
This commit is contained in:
Domen Kožar 2023-04-18 16:26:25 +01:00 committed by GitHub
commit 31a3e311da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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";