anishmsry — 2012-06-04T01:57:50-04:00 — #1
I had been reading about Apache graceful restart.
apachectl -k 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).
...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?
eastcoast — 2012-06-04T05:57:29-04:00 — #2
I'd presume if you have php as an apache module you'd be ok, however if you have php as CGI you might interrupt it. If I ever have any heavy image processing, I tend to prefer imagemagick as the method of carrying it out as apart from being more advanced, it then exists outside php/apache limitations.
anishmsry — 2012-06-04T07:45:37-04:00 — #3
thanks for the reply
I'm using imagemagick.
If you find out more about this, please post
dklynn — 2012-06-04T21:09:12-04:00 — #4
Since it is Apache which is handling requests (Apache asks PHP for help when required but receives the output from PHP to send back to the requester), I'd GUESS that forcing a restart will terminate any and all ongoing processes. That said, the short time that Apache takes to restart (assuming no adverse impace from the changes you made to its configuration files which are requiring the restart are syntactically valid), any disruption in service should be minimal (even on a busy server).