Skip to content

Commit 412e55a

Browse files
committedJun 27, 2017
hydra: restart daemons on config change
NixOS/hydra#491 (cherry picked from commit 4dadb12) Signed-off-by: Domen Kožar <domen@dev.si>
1 parent 1b78b2d commit 412e55a

File tree

1 file changed

+3
-0
lines changed
  • nixos/modules/services/continuous-integration/hydra

1 file changed

+3
-0
lines changed
 

‎nixos/modules/services/continuous-integration/hydra/default.nix

+3
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,7 @@ in
308308
requires = [ "hydra-init.service" ];
309309
after = [ "hydra-init.service" ];
310310
environment = serverEnv;
311+
restartTriggers = [ hydraConf ];
311312
serviceConfig =
312313
{ ExecStart =
313314
"@${cfg.package}/bin/hydra-server hydra-server -f -h '${cfg.listenHost}' "
@@ -324,6 +325,7 @@ in
324325
requires = [ "hydra-init.service" ];
325326
after = [ "hydra-init.service" "network.target" ];
326327
path = [ cfg.package pkgs.nettools pkgs.openssh pkgs.bzip2 config.nix.package ];
328+
restartTriggers = [ hydraConf ];
327329
environment = env // {
328330
PGPASSFILE = "${baseDir}/pgpass-queue-runner"; # grrr
329331
IN_SYSTEMD = "1"; # to get log severity levels
@@ -345,6 +347,7 @@ in
345347
requires = [ "hydra-init.service" ];
346348
after = [ "hydra-init.service" "network.target" ];
347349
path = with pkgs; [ cfg.package nettools jq ];
350+
restartTriggers = [ hydraConf ];
348351
environment = env;
349352
serviceConfig =
350353
{ ExecStart = "@${cfg.package}/bin/hydra-evaluator hydra-evaluator";

0 commit comments

Comments
 (0)
Please sign in to comment.