[Bug 1391192] [NEW] php5-fpm init(.d) scripts don't report status

Igor Galić i.galic at brainsware.org
Mon Nov 10 14:51:01 UTC 2014


Public bug reported:

when running service php5-fpm status, we're not getting the correct
status reported:

root at levix ~ # ps -cafe | grep -i [p]hp-
stats.a+ 23628     1 TS   19 14:11 ?        00:00:00 php-fpm: pool stats.acme.com                                            
stats.a+ 23629     1 TS   19 14:11 ?        00:00:00 php-fpm: pool stats.acme.com                                            
stats.a+ 23630     1 TS   19 14:11 ?        00:00:00 php-fpm: pool stats.acme.com                                            
stats.a+ 23631     1 TS   19 14:11 ?        00:00:00 php-fpm: pool stats.acme.com                                            
root at levix ~ # status php5-fpm
php5-fpm stop/waiting
root at levix ~ # start php5-fpm
php5-fpm start/running, process 15902
root at levix ~ # ps -cafe | grep -i [p]hp-
stats.a+ 23628     1 TS   19 14:11 ?        00:00:00 php-fpm: pool stats.acme.com                                            
stats.a+ 23629     1 TS   19 14:11 ?        00:00:00 php-fpm: pool stats.acme.com                                            
stats.a+ 23630     1 TS   19 14:11 ?        00:00:00 php-fpm: pool stats.acme.com                                            
stats.a+ 23631     1 TS   19 14:11 ?        00:00:00 php-fpm: pool stats.acme.com                                            


This is true regardless which init script we call:

root at levix ~ # /etc/init.d/php5-fpm status
root at levix ~ # echo $?
1


That makes the whole thing very unusable in a configuration management setup, where puppet runs once an hour, configuring 18 pools, and then (re)starting the pool once an hour.

(then again, that might help with php apps leaking memory ;)

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

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to php5 in Ubuntu.
https://bugs.launchpad.net/bugs/1391192

Title:
  php5-fpm init(.d) scripts don't report status

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



More information about the Ubuntu-server-bugs mailing list