"reload php5-fpm" crashes
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
php |
Unknown
|
Unknown
|
|||
php5 (Ubuntu) |
Fix Released
|
High
|
Unassigned | ||
Trusty |
Won't Fix
|
Medium
|
Unassigned |
Bug Description
[Impact]
On releases running upstart (those older than Vivid), the php5-fpm service crashes on reload.
[Workaround]
Create /etc/init/
[Original Description]
"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)
tags: | added: saucy |
tags: | added: precise |
tags: | added: trusty |
Changed in php5 (Ubuntu): | |
status: | Triaged → New |
assignee: | nobody → Pratiksha (deekshammhs10) |
Note that the move to upstart for php5-fpm happened with Ubuntu 13.10
Its not relevant for older releases.