php-fpm --test doesn't set a valuable return value
| Bug #53527 | php-fpm --test doesn't set a valuable return value | ||||
|---|---|---|---|---|---|
| Submitted: | 2010-12-12 17:44 UTC | Modified: | 2010-12-18 12:22 UTC | ||
| From: | fedora at famillecollet dot com | Assigned: | fat (profile) | ||
| Status: | Closed | Package: | FPM related | ||
| PHP Version: | 5.3.4 | OS: | GNU/Linux (Fedora 14) | ||
| Private report: | No | CVE-ID: | None | ||
[2010-12-12 17:44 UTC] fedora at famillecollet dot com
Description:
------------
php-fpm --test always return 255
It will be great if the return code give information about the result.
It will allow to create an "intelligent" init script to reload the config
Something like:
if php-fpm --test; then
killproc -p ${pidfile} php-fpm -USR2
fi
Test script:
---------------
# php-fpm --test ; echo $?
Expected result:
----------------
Dec 12 17:35:19.752605 [NOTICE] configuration file /etc/php-fpm.conf test is successful
0
Actual result:
--------------
Dec 12 17:35:19.752605 [NOTICE] configuration file /etc/php-fpm.conf test is successful
255
Patches
Pull Requests
History
AllCommentsChangesGit/SVN commits
[2010-12-18 12:22 UTC] fat@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: fat
[2010-12-18 12:22 UTC] fat@php.net