Edit report at http://bugs.php.net/bug.php?id=53074&edit=1

 ID:                 53074
 Updated by:         [email protected]
 Reported by:        juangiordana at gmail dot com
 Summary:            Sending php-fpm service a HUP signal causes problems
                     with daemontools
-Status:             Open
+Status:             Feedback
 Type:               Bug
 Package:            FPM related
 Operating System:   Linux (funtoo/gentoo)
 PHP Version:        5.3.3
 Block user comment: N

 New Comment:

Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php

If you can provide more information, feel free to add it
to this bug and change the status back to "Open".

Thank you for your interest in PHP.


This could be the same problem as bug 52501.



Can you test the patch attached to the bug 52501 please ?


Previous Comments:
------------------------------------------------------------------------
[2010-10-15 11:30:56] juangiordana at gmail dot com

Description:
------------
I'm running php-fpm with DJB daemontools (daemonize = no) process
supervisor.



Every time I send the process a HUP signal (graceful reload) the process
is in some way "detached" from daemontools so it's not possible to
reload it because it's already runninng.



Since the children processes aren't properly (?) terminated, php-fpm
refuses to start:

Test script:
---------------
# ps axf

 1806 ?        Ss     0:00 /bin/sh /command/svscanboot

 1809 ?        S      0:02  \_ svscan /service

 1811 ?        S      0:00  |   \_ supervise nginx

 1861 ?        S      0:00  |   |   \_ nginx: master process
/usr/local/sbin/nginx -c /usr/local/etc/nginx/nginx.conf

 1947 ?        S      0:00  |   |       \_ nginx: worker process        
                          

 1812 ?        S      0:00  |   \_ supervise log

 1862 ?        S      0:00  |   |   \_ /command/multilog t s10000000 n30
/var/log/nginx

 1824 ?        S      0:00  |   \_ supervise php-fpm

20807 ?        Ss     0:00  |   |   \_ /usr/local/sbin/php-fpm
--fpm-config /usr/local/etc/php/php-fpm.conf

20808 ?        S      0:00  |   |       \_ /usr/local/sbin/php-fpm
--fpm-config /usr/local/etc/php/php-fpm.conf

20809 ?        S      0:00  |   |       \_ /usr/local/sbin/php-fpm
--fpm-config /usr/local/etc/php/php-fpm.conf

20810 ?        S      0:00  |   |       \_ /usr/local/sbin/php-fpm
--fpm-config /usr/local/etc/php/php-fpm.conf

 1825 ?        S      0:00  |   \_ supervise log



# svc -h /service/php-fpm

# ps axf

14606 ?        S      0:01 /srv/bin/php-cgi --fpm --fpm-config
/srv/etc/php/php-fpm.conf

14607 ?        S      0:00 /srv/bin/php-cgi --fpm --fpm-config
/srv/etc/php/php-fpm.conf

14608 ?        S      0:01 /srv/bin/php-cgi --fpm --fpm-config
/srv/etc/php/php-fpm.conf



# tailf /var/log/php-fpm/current 

@400000004cb81c1f223b929c Oct 15 06:17:09.545883 [ERROR] bind() for
address '127.0.0.1:9000' failed: Address already in use (98)

@400000004cb81c1f34789c0c Oct 15 06:17:09.880267 [WARNING] [pool www]
pm.start_servers is not set. It's been set to 3.

@400000004cb81c1f35767854 Oct 15 06:17:09.880736 [ERROR] bind() for
address '127.0.0.1:9000' failed: Address already in use (98)

@400000004cb81c203798141c Oct 15 06:17:10.932654 [WARNING] [pool www]
pm.start_servers is not set. It's been set to 3.





------------------------------------------------------------------------



-- 
Edit this bug report at http://bugs.php.net/bug.php?id=53074&edit=1

Reply via email to