Public bug reported:

"reload php5-fpm" with upstart does not work.

php5-fpm will crash and leave non-working child processes hanging around
that will block any recovery until they are killed off manually.

This is because php5-fpm does not handle SIGHUP. It results in an
uncontrolled exit. After telling upstart to instead use SIGUSR2 on
reload*, things work as expected.

* "reload signal SIGUSR2" in upstart php5-fpm.conf

Signals handled by php5-fpm seems to be:
* SIGINT, SIGTERM: immediate termination
* SIGQUIT: graceful stop
* SIGUSR1: re-open log file
* SIGUSR2: graceful reload of all workers + reload of fpm conf/binary

Ubuntu 13.10, amd64
ii  php5-fpm                             5.5.3+dfsg-1ubuntu2              amd64 
       server-side, HTML-embedded scripting language (FPM-CGI binary)

** Affects: php5 (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1242376

Title:
  "reload php5-fpm" crashes

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/php5/+bug/1242376/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to