Add a unit template to run hydra-evaluator with arbitrary arguments

Signed-off-by: Shea Levy <shea@shealevy.com>
This commit is contained in:
Shea Levy 2013-11-06 10:35:53 -05:00
parent 27a740d4b1
commit 6cac7e9795

View file

@ -244,6 +244,16 @@ in
}; };
}; };
systemd.services."hydra-evaluator@" =
{ path = [ pkgs.nettools ];
environment = env;
serviceConfig =
{ ExecStart = "@${cfg.hydra}/bin/hydra-evaluator hydra-evaluator %I";
User = "hydra";
Type = "oneshot";
};
};
systemd.services."hydra-update-gc-roots" = systemd.services."hydra-update-gc-roots" =
{ wants = [ "hydra-init.service" ]; { wants = [ "hydra-init.service" ];
after = [ "hydra-init.service" ]; after = [ "hydra-init.service" ];