3
0
Fork 0
forked from mirrors/nixpkgs

Start httpd synchronously

This ensures that when "start httpd" returns, Apache is actually
listening.

http://hydra.nixos.org/build/5499393
This commit is contained in:
Eelco Dolstra 2013-07-09 15:08:48 +02:00
parent ff84facca3
commit b26f3141db

View file

@ -651,8 +651,9 @@ in
done
'';
serviceConfig.ExecStart = "@${httpd}/bin/httpd httpd -f ${httpdConf} -DNO_DETACH";
serviceConfig.ExecStart = "@${httpd}/bin/httpd httpd -f ${httpdConf}";
serviceConfig.ExecStop = "${httpd}/bin/httpd -f ${httpdConf} -k graceful-stop";
serviceConfig.Type = "forking";
serviceConfig.Restart = "always";
};