Apache HTTPD reload

Luke picture Luke · Mar 22, 2009 · Viewed 36.2k times · Source

Does anyone know if while Apache HTTPD is doing a reload (which, let's say, takes five seconds) can it still serve requests during that time?

Answer

karim79 picture karim79 · Mar 22, 2009

First of all, you say reload, but assuming you mean 'reload' OR 'restart':

   /my/path/to/httpd restart
  • Causes the current httpd process to exit, which means for a time the server appears to be down, as in not serving any requests.

Reload on the other side:

    /my/path/to/httpd reload
  • Does not cause the current server to exit, which means connections are never refused and thus the server never looks down (but is rather slow for a little while)
  • Will cause all long running httpd daemon requests to exit