PHP5-FPM doesn't always restart on 10.10
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
php5 (Ubuntu) |
Fix Released
|
Medium
|
Unassigned |
Bug Description
Binary package hint: php5-fpm
The init script for PHP5-FPM doesn't handle restarts correctly. When you restart an active PHP5-FPM process, it'll sometimes shutdown the old process, but the new process won't spawn any children and handle requests.
I think whats happening is that the new PHP5-FPM process is trying to grab the FastCGI Port while the old process is still shutting down, causing the new PHP5-FPM process to fail.
Either way, this can be fixed by changing restart to use graceful-stop instead of stop
Currently it does-
restart)
$0 stop
$0 start
;;
This needs to become
restart)
$0 graceful-stop
$0 start
;;
Description: Ubuntu 10.10
Release: 10.10
php5-fpm:
Installed: 5.3.3-1ubuntu9.3
Candidate: 5.3.3-1ubuntu9.3
Version table:
*** 5.3.3-1ubuntu9.3 0
500 http://
500 http://
100 /var/lib/
5.3.3-1ubuntu9 0
500 http://
Changed in php5 (Ubuntu): | |
status: | New → Confirmed |
tags: | added: natty |
I can't reproduce this, but then I don't have any sort of load on the service...