@cryptotaxi247 / infra-1 / commits / 60084b2e

* Mark hydra-init as a task rather than a service.

svn path=/configurations/trunk/tud/; revision=30579

Eelco Dolstra committed Nov 28, 2011 at 10:02 UTC 60084b2e0bec4f02db620b9d34f0a610b260020b
1 file changed +3 -5
hydra-module.nix
+3 -5
@@ -131,15 +131,13 @@ in
131
132 jobs.hydra_init =
133 { name = "hydra-init";
134 - startOn = "started network-interfaces";
135 - preStart = ''
134 + startOn = "filesystem";
135 + script = ''
136 mkdir -p ${cfg.baseDir}/data
137 chown ${cfg.user} ${cfg.baseDir}/data
138 ln -sf ${hydraConf} ${cfg.baseDir}/data/hydra.conf
139 '';
140 - exec = ''
141 - echo done
142 - '';
140 + task = true;
141 };
142
143 jobs.hydra_server =