Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Apache HTTPD reload [closed]

Tags:

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?

like image 691
Luke Avatar asked Mar 22 '09 21:03

Luke


People also ask

What is graceful restart Apache?

Graceful RestartThe USR1 or graceful signal causes the parent process to advise the children to exit after their current request (or to exit immediately if they're not serving anything). The parent re-reads its configuration files and re-opens its log files.


1 Answers

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
like image 60
karim79 Avatar answered Oct 07 '22 17:10

karim79