forked from lix-project/hydra
hydra-queue-runner.service: Set IN_SYSTEMD
This commit is contained in:
parent
5370be9f52
commit
6ddcd37df1
|
@ -261,10 +261,11 @@ in
|
||||||
path = [ pkgs.nettools ];
|
path = [ pkgs.nettools ];
|
||||||
environment = env // {
|
environment = env // {
|
||||||
PGPASSFILE = "${baseDir}/pgpass-queue-runner"; # grrr
|
PGPASSFILE = "${baseDir}/pgpass-queue-runner"; # grrr
|
||||||
|
IN_SYSTEMD = "1"; # to get log severity levels
|
||||||
};
|
};
|
||||||
serviceConfig =
|
serviceConfig =
|
||||||
{ ExecStartPre = "${cfg.package}/bin/hydra-queue-runner --unlock";
|
{ ExecStartPre = "${cfg.package}/bin/hydra-queue-runner --unlock";
|
||||||
ExecStart = "@${cfg.package}/bin/hydra-queue-runner hydra-queue-runner";
|
ExecStart = "@${cfg.package}/bin/hydra-queue-runner hydra-queue-runner -v";
|
||||||
ExecStopPost = "${cfg.package}/bin/hydra-queue-runner --unlock";
|
ExecStopPost = "${cfg.package}/bin/hydra-queue-runner --unlock";
|
||||||
User = "hydra-queue-runner";
|
User = "hydra-queue-runner";
|
||||||
Restart = "always";
|
Restart = "always";
|
||||||
|
|
Loading…
Reference in a new issue