diff options
author | Remi Collet <remi@remirepo.net> | 2018-03-15 11:29:23 +0100 |
---|---|---|
committer | Remi Collet <remi@remirepo.net> | 2018-03-15 11:29:23 +0100 |
commit | 2761a48efc0a273c805904775fef0cd158f3fff8 (patch) | |
tree | 3f4c0513aee9279b4b8be3579a74fed0216f2ea9 /php.spec | |
parent | 2161f67a05fa73f16d71bc74a5bb4a1694e0a9ce (diff) |
add file trigger to restart the php-fpm service when new pool or new extension installed (F27+)
Diffstat (limited to 'php.spec')
-rw-r--r-- | php.spec | 14 |
1 files changed, 13 insertions, 1 deletions
@@ -127,7 +127,7 @@ Summary: PHP scripting language for creating dynamic web sites Name: %{?scl_prefix}php Version: %{upver}%{?rcver:~%{rcver}} -Release: 1%{?dist} +Release: 2%{?dist} # All files licensed under PHP version 3.01, except # Zend is licensed under Zend # TSRM is licensed under BSD @@ -1626,6 +1626,7 @@ if [ $1 = 0 ]; then fi %endif +%if 0%{?fedora} < 27 && 0%{?rhel} < 8 %postun fpm %if %{with_systemd} %systemd_postun_with_restart %{?scl:%{scl}-}php-fpm.service @@ -1634,6 +1635,13 @@ if [ $1 -ge 1 ]; then /sbin/service %{?scl_prefix}php-fpm condrestart >/dev/null 2>&1 || : fi %endif +%endif + +%if 0%{?fedora} >= 27 || 0%{?rhel} >= 8 +# Raised by new pool installation or new extension installation +%transfiletriggerin fpm -- %{_sysconfdir}/php-fpm.d %{_sysconfdir}/php.d +systemctl try-restart %{?scl:%{scl}-}php-fpm.service >/dev/null 2>&1 || : +%endif # Handle upgrading from SysV initscript to native systemd unit. # We can tell if a SysV version of php-fpm was previously installed by @@ -1836,6 +1844,10 @@ fi %changelog +* Thu Mar 15 2018 Remi Collet <remi@remirepo.net> - 7.0.28-2 +- add file trigger to restart the php-fpm service + when new pool or new extension installed (F27+) + * Tue Feb 27 2018 Remi Collet <remi@remirepo.net> - 7.0.28-1 - Update to 7.0.28 - http://www.php.net/releases/7_0_28.php - FPM: revert pid file removal |