From a07eb262a0895bb1b95d538bef32c2dade6d5252 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Fri, 6 Jul 2012 13:47:42 -0400 Subject: [PATCH] Apache: don't fork into the background due to Upstart weirdness If Apache crashes during startup, Upstart for some reason shows the job in the "start/running" state. As a workaround, don't fork. --- modules/services/web-servers/apache-httpd/default.nix | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/modules/services/web-servers/apache-httpd/default.nix b/modules/services/web-servers/apache-httpd/default.nix index ce3311a5f598..c47df868b882 100644 --- a/modules/services/web-servers/apache-httpd/default.nix +++ b/modules/services/web-servers/apache-httpd/default.nix @@ -593,9 +593,7 @@ in done ''; - daemonType = "fork"; - - exec = "httpd -f ${httpdConf}"; + exec = "httpd -f ${httpdConf} -DNO_DETACH"; preStop = ''