82508

Apache graceful restart - Does it affect current PHP script execution

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?

Answer1:

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.

Recommend

  • Nginx creates log files on behalf of root
  • Execute multiple commands on remote machine
  • Oracle 10g: ORA-12154 when connect to database with newly created user
  • Why does Perl's IO::Socket on Windows complain about “Resource Not Available” after 64 connecti
  • Open a Configuration Profile through app
  • How to execute javascript method from server side?
  • The C Programming Language K&R exercise 1- 9
  • Django : Model Instance history
  • Authentication - JavaScript - Logout issue
  • PHP Handling Namespace with SimpleXML
  • Angular2 emit event up to the DOM tree
  • Firebase, only get new children
  • phpmailer - How to verify a sent email arrived at its destination
  • How to debug Shell command after customization
  • Plotting Route with Multiple Points in iOS
  • pygame.init() shows as undefined variable after installing Pygame
  • Using an STL Iterator without initialising it
  • Pythons argparse default value doesn't work
  • Are there any issues with placing image as background on an extended JFrame?
  • triggering user space with kernel
  • Java making confirming exit
  • Magento get URL before current
  • Ubuntu and bcrypt
  • Intel-64 and ia32 atomic operations acquire-release semantics and GCC 5+
  • How to disable all widgets inside Panel or inside Composite?
  • Using JRuby with Rails 3.2
  • Force show.bind execution
  • Code in Job's Script Block after Start-Process Does not Execute
  • How can I sort a a table with VBA with given text condition?
  • Disable Enter in editText android
  • Fetching methods from BroadcastReceiver to update UI
  • Obtain ObjectIdHex value from mgo query
  • How to get icons for entities from eclipse?
  • Understanding cpu registers
  • How do I configure my settings file to work with unit tests?
  • Turn off referential integrity in Derby? is it possible?
  • Linking SubReports Without LinkChild/LinkMaster
  • JaxB to read class hierarchy
  • Easiest way to encapsulate a HTML5 webpage into an android app?
  • How do I use LINQ to get all the Items that have a particular SubItem?