forked from lix-project/hydra
hydra-module.nix: Make services require hydra-init
This commit is contained in:
parent
1f6304c876
commit
f4845cde00
|
@ -195,7 +195,7 @@ in
|
||||||
|
|
||||||
systemd.services."hydra-server" =
|
systemd.services."hydra-server" =
|
||||||
{ wantedBy = [ "multi-user.target" ];
|
{ wantedBy = [ "multi-user.target" ];
|
||||||
wants = [ "hydra-init.service" ];
|
requires = [ "hydra-init.service" ];
|
||||||
after = [ "hydra-init.service" ];
|
after = [ "hydra-init.service" ];
|
||||||
environment = serverEnv;
|
environment = serverEnv;
|
||||||
serviceConfig =
|
serviceConfig =
|
||||||
|
@ -207,7 +207,7 @@ in
|
||||||
|
|
||||||
systemd.services."hydra-queue-runner" =
|
systemd.services."hydra-queue-runner" =
|
||||||
{ wantedBy = [ "multi-user.target" ];
|
{ wantedBy = [ "multi-user.target" ];
|
||||||
wants = [ "hydra-init.service" ];
|
requires = [ "hydra-init.service" ];
|
||||||
after = [ "hydra-init.service" "network.target" ];
|
after = [ "hydra-init.service" "network.target" ];
|
||||||
path = [ pkgs.nettools ];
|
path = [ pkgs.nettools ];
|
||||||
environment = env;
|
environment = env;
|
||||||
|
@ -221,7 +221,7 @@ in
|
||||||
|
|
||||||
systemd.services."hydra-evaluator" =
|
systemd.services."hydra-evaluator" =
|
||||||
{ wantedBy = [ "multi-user.target" ];
|
{ wantedBy = [ "multi-user.target" ];
|
||||||
wants = [ "hydra-init.service" ];
|
requires = [ "hydra-init.service" ];
|
||||||
after = [ "hydra-init.service" "network.target" ];
|
after = [ "hydra-init.service" "network.target" ];
|
||||||
path = [ pkgs.nettools ];
|
path = [ pkgs.nettools ];
|
||||||
environment = env;
|
environment = env;
|
||||||
|
@ -233,7 +233,7 @@ in
|
||||||
};
|
};
|
||||||
|
|
||||||
systemd.services."hydra-update-gc-roots" =
|
systemd.services."hydra-update-gc-roots" =
|
||||||
{ wants = [ "hydra-init.service" ];
|
{ requires = [ "hydra-init.service" ];
|
||||||
after = [ "hydra-init.service" ];
|
after = [ "hydra-init.service" ];
|
||||||
environment = env;
|
environment = env;
|
||||||
serviceConfig =
|
serviceConfig =
|
||||||
|
|
Loading…
Reference in a new issue