问题
I had been reading about Apache graceful restart.
apachectl -k graceful
http://httpd.apache.org/docs/2.2/stopping.html#graceful
The 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).
http://www.electrictoolbox.com/artic...estart-apache/
...meaning that anyone who is in the middle of downloading something will continue to be able to download it.
If a long running PHP script is currently being executed (eg: processing a large image), will graceful restart allow it to be completed or will it hinder its execution?
回答1:
It will be completed because the Apache child process is busy serving the response for the customers request and waits for PHP to finish the response.
来源:https://stackoverflow.com/questions/10947895/apache-graceful-restart-does-it-affect-current-php-script-execution