Edit report at https://bugs.php.net/bug.php?id=62033&edit=1
ID: 62033
Updated by: fat@php.net
Reported by: js at justinsamuel dot com
Summary: php-fpm exits with status 0 on some failures to
start
-Status: Feedback
+Status: Closed
Type: Bug
Package: FPM related
Operating System: Linux (Ubuntu 12.04)
PHP Version: 5.4.3
Assigned To: fat
Block user comment: N
Private report: N
New Comment:
This bug has been fixed in SVN.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
For Windows:
http://windows.php.net/snapshots/
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2012-05-25 19:15:20] fat@php.net
Automatic comment on behalf of fat
Revision: http://git.php.net/?p=php-src.git;a=commit;h=a28fe034f2d5253e0fbefafc6a7938df9db7319e
Log: - Fixed bug #62033 (php-fpm exits with status 0 on some failures to start).
------------------------------------------------------------------------
[2012-05-25 19:15:19] fat@php.net
Automatic comment on behalf of fat
Revision: http://git.php.net/?p=php-src.git;a=commit;h=c2f33fb1293cbcdc94daefb8583ca13e98b5c826
Log: - Fixed bug #62033 (php-fpm exits with status 0 on some failures to start)
------------------------------------------------------------------------
[2012-05-25 19:15:18] fat@php.net
Automatic comment on behalf of fat
Revision: http://git.php.net/?p=php-src.git;a=commit;h=bf9120ecae6e4653dbb5a1b0576f0b163afd6846
Log: - Fixed bug #62033 (php-fpm exits with status 0 on some failures to start)
------------------------------------------------------------------------
[2012-05-25 16:19:53] js at justinsamuel dot com
With the v2 patch this is working as expected:
# /opt/test/php5.3/sbin/php-fpm --fpm-config /root/php-test/fpm.conf
[25-May-2012 11:08:17] ERROR: [pool example.com] cannot get uid for user 'fakeuser'
[25-May-2012 11:08:17] ERROR: FPM initialization failed
# echo $?
78
Thanks!
Justin
------------------------------------------------------------------------
[2012-05-25 08:52:06] fat@php.net
Hi again,
here is a new revision of the patch. Now, when daemonized, the calling process
register 2 signal handler for USR1 and USR2 just before forking the master
process. After initialization ends on the master process, it sends USR1 if
successful or USR2 otherwise to the calling process. On USR1 signal, the calling
process exits with 0, on USR2 it exists with error 78 (EX_CONFIG) and if does
not receive anything, there's a 10 seconds timeout to exit with code 70
(EX_SOFTWARE).
Can you please test it ?
thx
++ Jerome
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=62033--
Edit this bug report at https://bugs.php.net/bug.php?id=62033&edit=1