From:             
Operating system: 
PHP version:      5.3.3
Package:          FPM related
Bug Type:         Feature/Change Request
Bug description:init: Get php_fpm_PID from conf file (patch)

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 bug report at http://bugs.php.net/bug.php?id=52898&edit=1
-- 
Try a snapshot (PHP 5.2):            
http://bugs.php.net/fix.php?id=52898&r=trysnapshot52
Try a snapshot (PHP 5.3):            
http://bugs.php.net/fix.php?id=52898&r=trysnapshot53
Try a snapshot (trunk):              
http://bugs.php.net/fix.php?id=52898&r=trysnapshottrunk
Fixed in SVN:                        
http://bugs.php.net/fix.php?id=52898&r=fixed
Fixed in SVN and need be documented: 
http://bugs.php.net/fix.php?id=52898&r=needdocs
Fixed in release:                    
http://bugs.php.net/fix.php?id=52898&r=alreadyfixed
Need backtrace:                      
http://bugs.php.net/fix.php?id=52898&r=needtrace
Need Reproduce Script:               
http://bugs.php.net/fix.php?id=52898&r=needscript
Try newer version:                   
http://bugs.php.net/fix.php?id=52898&r=oldversion
Not developer issue:                 
http://bugs.php.net/fix.php?id=52898&r=support
Expected behavior:                   
http://bugs.php.net/fix.php?id=52898&r=notwrong
Not enough info:                     
http://bugs.php.net/fix.php?id=52898&r=notenoughinfo
Submitted twice:                     
http://bugs.php.net/fix.php?id=52898&r=submittedtwice
register_globals:                    
http://bugs.php.net/fix.php?id=52898&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=52898&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=52898&r=dst
IIS Stability:                       
http://bugs.php.net/fix.php?id=52898&r=isapi
Install GNU Sed:                     
http://bugs.php.net/fix.php?id=52898&r=gnused
Floating point limitations:          
http://bugs.php.net/fix.php?id=52898&r=float
No Zend Extensions:                  
http://bugs.php.net/fix.php?id=52898&r=nozend
MySQL Configuration Error:           
http://bugs.php.net/fix.php?id=52898&r=mysqlcfg

Reply via email to