Topic: php-fpm init script reload and test configuration

Hello,

My apologies if this issue has already been dealt.

I'm wondering why php-fpm init script is different than redhat's script related to reload function. Redhat includes a check to ensure syntax integrity as follows:

if ! /usr/sbin/php-fpm --test ; then
        RETVAL=6
        echo $"not reloading due to configuration syntax error"
        failure $"not reloading $prog due to configuration syntax error"
else
    killproc -p ${pidfile} php-fpm -USR2
    RETVAL=$?
fi
echo

It would be great have a similar test in remi script.

Thanks in advance.
Kind regards.

Re: php-fpm init script reload and test configuration

Which is very funny.... this file was, as usual, pulled from Fedora, which was pulled from remi...
It seems I forget to merge this.
I don't remember at which time I add this improvement..

Fixed, will be in next build
https://github.com/remicollet/remirepo/ … 902707891a

Thanks for the notice.

Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi