Edit report at https://bugs.php.net/bug.php?id=54172&edit=1
ID: 54172 Updated by: f...@php.net Reported by: olemarkus at gentoo dot org Summary: Overriding the pid file location of php-fpm -Status: Assigned +Status: Feedback Type: Feature/Change Request Package: FPM related PHP Version: 5.3.5 Assigned To: fat Block user comment: N Private report: 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. Can you please test the attached patch and tell me if it seems to be OK with you. I've added a -g (or --pid) to php-fpm binary to specify the pid file. Note: if the pid is also defined in php-fpm.conf, an error is thrown because the pid is defined twice. So you should remove the pid line in the php-fpm.conf you're providing and add a comment NOT to use it in order not to interfere with your init.d script. ++ jerome Previous Comments: ------------------------------------------------------------------------ [2011-07-02 13:39:26] f...@php.net The following patch has been added/updated: Patch Name: fpm-pid.v1.patch Revision: 1309628366 URL: https://bugs.php.net/patch-display.php?bug=54172&patch=fpm-pid.v1.patch&revision=1309628366 ------------------------------------------------------------------------ [2011-03-06 10:18:42] olemarkus at gentoo dot org Description: ------------ After Gentoo added FPM support, one of the most-reported issues we have related to FPM is to make sure the PID file location in the FPM configuration and the one in the init script match each other. Currently we set a fixed pid location in the config file and the init script expects that this config is not changed. If a user change the pid file location, the init script stops working. The only alternative solution I have seen so far is to use to try to grep the pid location from the config, but at least the attempt done by the dotdeb maintainer to do this did not work very well. It would be nice if an argument could be added to the php-fpm binary allowing init-scripts to specify the pid file location directly, overriding any location configured in the FPM configuration file. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=54172&edit=1