#1122273 make ExecReload for PHP-FPM reliable

Package:
php8.4-fpm
Source:
php8.4-fpm
Description:
server-side, HTML-embedded scripting language (FPM-CGI binary)
Submitter:
Marco d'Itri
Date:
2025-12-09 16:01:09 UTC
Severity:
normal
Tags:
#1122273#5
Date:
2025-12-09 15:58:41 UTC
From:
To:
Please add something like this before the ExecReload kill directive in
the FPM service unit:

ExecReload=/usr/sbin/php-fpm8.4 --test --fpm-config /etc/php/8.4/fpm/php-fpm.conf

It prevents the FPM daemon from just exiting on reload if the new
configuration is invalid.

For prior art, have a look at lighttpd.