* Start httpd after postgresql since the mediawiki subservice depends

on it.

svn path=/nixos/trunk/; revision=30161
This commit is contained in:
Eelco Dolstra 2011-11-01 13:44:48 +00:00
parent 07694cab46
commit 71e6f6ecdc

View File

@ -555,7 +555,12 @@ in
description = "Apache HTTPD";
startOn = "started ${startingDependency} and filesystem";
startOn = "started ${startingDependency} and filesystem"
# Hacky. Some subservices depend on Postgres
# (e.g. Mediawiki), but they don't have a way to declare
# that dependency. So just start httpd after postgresql if
# the latter is enabled.
+ optionalString config.services.postgresql.enable " and started postgresql";
environment =
{ PATH = concatStringsSep ":" (