shadedecho
Programmer
I have just finished installing and configuring Apache 2.2 on a debian linux system. I've set it up to use VirtualHost entries, as there are about half a dozen different sites being hosted on there.
I've got apache set to start on boot up from init.d with the symlink to the apachectl script that ships with apache. Starting and stopping during normal system operation work just fine, and are almost instantaneous.
However, I have noticed during my system bootup that the starting of Apache hangs the boot sequence for anywhere from 10-60+ seconds. Eventually, the Apache finishes starting, booting continues, and all is fine.
Again, stopping and starting apache subsequent to boot do not cause these issues.
I am almost certain this is being caused by some sort of DNS resolution issue that Apache is choking on. I've seen nearly identical things happen on previous system installations. What I've done in the past to resolve, I've duplicated here, but it's not solving the issue on this machine, as it has in the past on previous machines.
I've put DNS (Bind 9.4) early on in the startup sequence (S14bind), with apache somewhat later (S21apache2), with about a dozen services that start in between them. In addition, I've got a simple "delay" script that happens right after Bind starts, to cause the system to sleep for a few seconds before continuing. This was to see if DNS was simply not fully loaded and ready to respond, and to give it some time to do so.
I've also worked on the settings in httpd.conf to try and remove any unnecessary DNS calls, such as putting in an IP address for the ServerName (the IP I put in has an entry in /etc/hosts as well, so it should easily reverse-map).
Still, apache seems intent on hanging for a bit during boot, and I'd really like to figure out how to resolve that. Any thoughts?
I've got apache set to start on boot up from init.d with the symlink to the apachectl script that ships with apache. Starting and stopping during normal system operation work just fine, and are almost instantaneous.
However, I have noticed during my system bootup that the starting of Apache hangs the boot sequence for anywhere from 10-60+ seconds. Eventually, the Apache finishes starting, booting continues, and all is fine.
Again, stopping and starting apache subsequent to boot do not cause these issues.
I am almost certain this is being caused by some sort of DNS resolution issue that Apache is choking on. I've seen nearly identical things happen on previous system installations. What I've done in the past to resolve, I've duplicated here, but it's not solving the issue on this machine, as it has in the past on previous machines.
I've put DNS (Bind 9.4) early on in the startup sequence (S14bind), with apache somewhat later (S21apache2), with about a dozen services that start in between them. In addition, I've got a simple "delay" script that happens right after Bind starts, to cause the system to sleep for a few seconds before continuing. This was to see if DNS was simply not fully loaded and ready to respond, and to give it some time to do so.
I've also worked on the settings in httpd.conf to try and remove any unnecessary DNS calls, such as putting in an IP address for the ServerName (the IP I put in has an entry in /etc/hosts as well, so it should easily reverse-map).
Still, apache seems intent on hanging for a bit during boot, and I'd really like to figure out how to resolve that. Any thoughts?