I have documented the workaround in the bug description. This bug
presumably does not affect releases >= Vivid since it is related to
upstart and Ubuntu runs systemd since Vivid. So marking Fix Released and
creating a Trusty task in case someone can come up with a good fix for
Trusty that can be SRU'd. Importance -> Medium as a workaround is
available.
** Description changed:
+ [Impact]
+
+ On releases running upstart (those older than Vivid), the php5-fpm
+ service crashes on reload.
+
+ [Workaround]
+
+ Create /etc/init/php5-fpm.override and add the line "reload signal
+ SIGUSR2" to it.
+
+ [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)
** Changed in: php5 (Ubuntu)
Assignee: Pratiksha (deekshammhs10) => (unassigned)
** Changed in: php5 (Ubuntu)
Status: Confirmed => Fix Released
** Also affects: php5 (Ubuntu Trusty)
Importance: Undecided
Status: New
** Changed in: php5 (Ubuntu Trusty)
Status: New => Triaged
** Changed in: php5 (Ubuntu Trusty)
Importance: Undecided => Medium
--
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/php/+bug/1242376/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs