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

 ID:                 52898
 Updated by:         [email protected]
 Reported by:        php-bugs at thequod dot de
 Summary:            init: Get php_fpm_PID from conf file (patch)
-Status:             Open
+Status:             Bogus
 Type:               Feature/Change Request
 Package:            FPM related
 PHP Version:        5.3.3
-Assigned To:        
+Assigned To:        fat
 Block user comment: N

 New Comment:

Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.

init.d.php-fpm.in is a sample for package managers who will tune it to
match their 

need. No changes will be made here.


Previous Comments:
------------------------------------------------------------------------
[2010-09-21 06:01:23] php-bugs at thequod dot de

Description:
------------
The following patch is meant to get the php_fpm_PID file from
php_fpm_CONF and 

output a warning if it is not configured.



The patch will probably not apply cleanly to SVN (it is based on the
Ubuntu 

package, where e.g. @sbindir@ is used - not checked though).

Because it is trivial, I am leaving it as-is (but can refresh it against
SVN, if 

you want me to).



Please consider it applying to the next release.



Index: php5-5.3.3/sapi/fpm/init.d.php-fpm.in

===================================================================

--- php5-5.3.3.orig/sapi/fpm/init.d.php-fpm.in  2010-07-27
18:22:48.000000000 

+0200

+++ php5-5.3.3/sapi/fpm/init.d.php-fpm.in 2010-07-27 18:25:56.000000000
+0200

@@ -15,8 +15,11 @@



 php_fpm_b...@sbindir@/php-fpm

-php_fpm_co...@sysconfdir@/php-fpm.conf

-php_fpm_p...@localstatedir@/run/php-fpm.pid

+php_fpm_co...@sysconfdir@/php5/fpm/php5-fpm.conf                       
                                                                        
                 

+php_fpm_PID=$(grep '^pid' $php_fpm_CONF | tail -n1 | cut -f2 -d= | tr
-d ' ')



+if [ -z $php_fpm_PID ] ; then

+ echo "warning, no pid file configured in $php_fpm_CONF."

+fi



 php_opts="--fpm-config $php_fpm_CONF"





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



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

Reply via email to