Merge pull request #207960 from domenkozar/cachix-agent-reliability

cachix-agent: always restart
This commit is contained in:
Domen Kožar 2022-12-27 15:15:50 +00:00 committed by GitHub
commit 93fb6f14eb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -67,7 +67,8 @@ in {
serviceConfig = {
# we don't want to kill children processes as those are deployments
KillMode = "process";
Restart = "on-failure";
Restart = "always";
RestartSec = 5;
EnvironmentFile = cfg.credentialsFile;
ExecStart = ''
${cfg.package}/bin/cachix ${lib.optionalString cfg.verbose "--verbose"} ${lib.optionalString (cfg.host != null) "--host ${cfg.host}"} \