From aabe514d07c8a91fd138e2283753dafe76eaabe7 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Fri, 26 Jun 2015 11:29:30 +0200 Subject: [PATCH] Update the hydra-queue-runner unit --- hydra-module.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hydra-module.nix b/hydra-module.nix index 12c76e35..470f842d 100644 --- a/hydra-module.nix +++ b/hydra-module.nix @@ -232,8 +232,8 @@ in path = [ pkgs.nettools ]; environment = env; serviceConfig = - { 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"; + ExecStopPost = "${cfg.package}/bin/hydra-queue-runner --unlock"; User = "hydra"; Restart = "always"; };