Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 357223 - dev-lang/php-5.3.5-r1 php-fpm init script pid is multiple.
Summary: dev-lang/php-5.3.5-r1 php-fpm init script pid is multiple.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: PHP Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-03 14:40 UTC by crucify
Modified: 2011-03-06 09:37 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (info.txt,12.00 KB, text/plain)
2011-03-06 04:08 UTC, crucify
Details

Note You need to log in before you can comment on or make changes to this bug.
Description crucify 2011-03-03 14:40:31 UTC
do not use --pid-file in init script.
fpm can multi unix socket
init script was always timeout.

back to php-5.3.3 init script.

Reproducible: Always
Comment 1 Ole Markus With (RETIRED) gentoo-dev 2011-03-04 23:25:43 UTC
Hi,

Could you elaborate exactly what the problem is and how to reproduce it?

Thanks!
Comment 2 crucify 2011-03-06 04:07:50 UTC
umm...
maybe, multi socket was no matter.

processes are started but init script cannot catch.

# /etc/init.d/php-fpm start
 * Starting PHP FastCGI Process Manager ...                                                   [ !! ]
 * ERROR: php-fpm failed to start

# ps aux | grep fpm

musinsa  32568  0.0  0.0 333316  7324 ?        S    04:04   0:00 php-fpm: pool musinsadb                             
musinsa  32569  0.0  0.0 333316  7324 ?        S    04:04   0:00 php-fpm: pool musinsadb                             
musinsa  32570  0.0  0.0 333316  7324 ?        S    04:04   0:00 php-fpm: pool musinsadb                             
musinsa  32571  0.0  0.0 333316  7324 ?        S    04:04   0:00 php-fpm: pool musinsadb                             
musinsa  32572  0.0  0.0 333316  7324 ?        S    04:04   0:00 php-fpm: pool musinsadb                             
musinsa  32573  0.0  0.0 333316  7328 ?        S    04:04   0:00 php-fpm: pool musinsadb                             
musinsa  32574  0.0  0.0 333316  7328 ?        S    04:04   0:00 php-fpm: pool musinsadb                             
musinsa  32575  0.0  0.0 333316  7328 ?        S    04:04   0:00 php-fpm: pool musinsadb                             
musinsa  32576  0.0  0.0 333316  7328 ?        S    04:04   0:00 php-fpm: pool musinsadb                             
musinsa  32577  0.0  0.0 333316  7328 ?        S    04:04   0:00 php-fpm: pool musinsadb                             
musinsa  32578  0.0  0.0 333316  7328 ?        S    04:04   0:00 php-fpm: pool musinsadb                             
musinsa  32579  0.0  0.0 333316  7328 ?        S    04:04   0:00 php-fpm: pool musinsadb                             
musinsa  32580  0.0  0.0 333316  7328 ?        S    04:04   0:00 php-fpm: pool musinsadb                             
musinsa  32581  0.0  0.0 333316  7328 ?        S    04:04   0:00 php-fpm: pool musinsadb                             
musinsa  32582  0.0  0.0 333316  7328 ?        S    04:04   0:00 php-fpm: pool musinsadb                             
musinsa  32583  0.0  0.0 333316  7328 ?        S    04:04   0:00 php-fpm: pool musinsadb                             
musinsa  32584  0.0  0.0 333316  7328 ?        S    04:04   0:00 php-fpm: pool musinsadb                             
musinsa  32585  0.0  0.0 333316  7328 ?        S    04:04   0:00 php-fpm: pool musinsadb                             
musinsa  32586  0.0  0.0 333316  7328 ?        S    04:04   0:00 php-fpm: pool musinsadb                             
musinsa  32587  0.0  0.0 333316  7328 ?        S    04:04   0:00 php-fpm: pool musinsadb                             


Comment 3 crucify 2011-03-06 04:08:09 UTC
Created attachment 264891 [details]
emerge --info
Comment 4 Ole Markus With (RETIRED) gentoo-dev 2011-03-06 08:48:30 UTC
The problem is most likely that you have set an incorrect pid path in your fpm config. 

Can you take a look at /etc/php/fpm-php5.3/php-fpm.conf and make sure it contains the following:
[global]
; Pid file
; Note: the default prefix is /var/lib
; Default Value: none
; Note: The Gentoo init script expects the pid path
; to be set to /var/run/php-fpm.pid
pid = /var/run/php-fpm.pid


It is not an optimal solution, but it is the best one I could come up with.
Comment 5 crucify 2011-03-06 09:37:08 UTC
thank you.
It's work.:)