Author: eelco Date: Fri Sep 9 13:25:07 2011 New Revision: 29127 URL: https://ssl.nixos.org/websvn/nix/?rev=29127&sc=1
Log: * Fix the start condition for hydra-queue-runner and hydra-server. Modified: configurations/trunk/tud/hydra-module.nix Modified: configurations/trunk/tud/hydra-module.nix ============================================================================== --- configurations/trunk/tud/hydra-module.nix Fri Sep 9 13:16:35 2011 (r29126) +++ configurations/trunk/tud/hydra-module.nix Fri Sep 9 13:25:07 2011 (r29127) @@ -133,7 +133,7 @@ ''; jobs.hydra_init = - { description = "hydra-init"; + { name = "hydra-init"; startOn = "started network-interfaces"; preStart = '' mkdir -p ${cfg.baseDir}/data @@ -146,16 +146,16 @@ }; jobs.hydra_server = - { description = "hydra-server"; - startOn = "started network-interfaces hydra-init"; + { name = "hydra-server"; + startOn = "started network-interfaces and started hydra-init"; exec = '' ${pkgs.su}/bin/su - ${cfg.user} -c '${server_env} hydra_server.pl > ${cfg.baseDir}/data/server.log 2>&1' ''; }; jobs.hydra_queue_runner = - { description = "hydra-queue-runner"; - startOn = "started network-interfaces hydra-init"; + { name = "hydra-queue-runner"; + startOn = "started network-interfaces and started hydra-init"; preStart = "${pkgs.su}/bin/su - ${cfg.user} -c 'hydra_queue_runner.pl --unlock'"; exec = '' ${pkgs.su}/bin/su - ${cfg.user} -c 'nice -n 8 hydra_queue_runner.pl > ${cfg.baseDir}/data/queue_runner.log 2>&1' @@ -163,7 +163,7 @@ }; jobs.hydra_evaluator = - { description = "hydra-evaluator"; + { name = "hydra-evaluator"; startOn = "started network-interfaces"; exec = '' ${pkgs.su}/bin/su - ${cfg.user} -c '${env} nice -n 5 hydra_evaluator.pl > ${cfg.baseDir}/data/evaluator.log 2>&1' _______________________________________________ nix-commits mailing list nix-comm...@cs.uu.nl http://mail.cs.uu.nl/mailman/listinfo/nix-commits