php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #75953 Reload signal should return error code when PHP-FPM init failed
Submitted: 2018-02-12 10:13 UTC Modified: -
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: pim at lemonbit dot com Assigned:
Status: Open Package: FPM related
PHP Version: 7.1.14 OS: CentOS 7
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2018-02-12 10:13 UTC] pim at lemonbit dot com
Description:
------------
When reloading the php-fpm daemon you would expect it to return an error code when the php-fpm initilization failed. However, we saw that the reload reported OK, but the php-fpm daemon still failed. 

Test script:
---------------
- Use a configuration that results in a failure, i.e. php-fpm pool with socket that is already in use by another instance. 
- Reload the php-fpm daemon with "kill -USR2 <pid>"


Expected result:
----------------
- Error exit code

Actual result:
--------------
- OK exit code

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2018-02-12 10:18 UTC] pim at lemonbit dot com
Excerpt from log (reload reports OK but php-fpm fails):

NOTICE: Reloading in progress ...
NOTICE: reloading: execvp("/opt/remi/php71/root/usr/sbin/php-fpm", {"/opt/remi/php71/root/usr/sbin/php-fpm", "--nodaemonize"})
ERROR: An another FPM instance seems to already listen on <redacted-path>.sock
ERROR: FPM initialization failed
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Sun Aug 18 07:01:28 2019 UTC