cachix-agent: always restart
This commit is contained in:
parent
e37ef84b47
commit
3148ec4f6c
|
@ -67,7 +67,8 @@ in {
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
# we don't want to kill children processes as those are deployments
|
# we don't want to kill children processes as those are deployments
|
||||||
KillMode = "process";
|
KillMode = "process";
|
||||||
Restart = "on-failure";
|
Restart = "always";
|
||||||
|
RestartSec = 5;
|
||||||
EnvironmentFile = cfg.credentialsFile;
|
EnvironmentFile = cfg.credentialsFile;
|
||||||
ExecStart = ''
|
ExecStart = ''
|
||||||
${cfg.package}/bin/cachix ${lib.optionalString cfg.verbose "--verbose"} ${lib.optionalString (cfg.host != null) "--host ${cfg.host}"} \
|
${cfg.package}/bin/cachix ${lib.optionalString cfg.verbose "--verbose"} ${lib.optionalString (cfg.host != null) "--host ${cfg.host}"} \
|
||||||
|
|
Loading…
Reference in a new issue