From f220f45d29494a9da5609991ab2609ba4095f107 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Domen=20Ko=C5=BEar?= Date: Tue, 27 Jun 2017 16:01:06 +0200 Subject: [PATCH] hydra-module.nix: restart daemons on config change --- hydra-module.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hydra-module.nix b/hydra-module.nix index 82edd5df..1f2bdb37 100644 --- a/hydra-module.nix +++ b/hydra-module.nix @@ -305,6 +305,7 @@ in requires = [ "hydra-init.service" ]; after = [ "hydra-init.service" ]; environment = serverEnv; + restartTriggers = [ hydraConf ]; serviceConfig = { ExecStart = "@${cfg.package}/bin/hydra-server hydra-server -f -h '${cfg.listenHost}' " @@ -321,6 +322,7 @@ in requires = [ "hydra-init.service" ]; after = [ "hydra-init.service" "network.target" ]; path = [ cfg.package pkgs.nettools pkgs.openssh pkgs.bzip2 config.nix.package ]; + restartTriggers = [ hydraConf ]; environment = env // { PGPASSFILE = "${baseDir}/pgpass-queue-runner"; # grrr IN_SYSTEMD = "1"; # to get log severity levels @@ -340,6 +342,7 @@ in systemd.services.hydra-evaluator = { wantedBy = [ "multi-user.target" ]; requires = [ "hydra-init.service" ]; + restartTriggers = [ hydraConf ]; after = [ "hydra-init.service" "network.target" ]; path = with pkgs; [ nettools cfg.package jq ]; environment = env;