3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #179634 from domenkozar/cachix-agent-avoid-restarts

cachix-agent: properly handle not restarting the service
This commit is contained in:
Domen Kožar 2022-06-29 17:37:00 -05:00 committed by GitHub
commit 5a14883a5f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -45,8 +45,11 @@ in {
after = ["network-online.target"];
path = [ config.nix.package ];
wantedBy = [ "multi-user.target" ];
# don't restart while changing
reloadIfChanged = true;
restartIfChanged = false;
unitConfig.X-StopOnRemoval = false;
environment.USER = "root";
serviceConfig = {
Restart = "on-failure";