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:
commit
5a14883a5f
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue