summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2018-03-15 11:33:09 +0100
committerRemi Collet <remi@remirepo.net>2018-03-15 11:33:09 +0100
commit90c7a06a5d97863e1d9bc197458880fc141e59fd (patch)
treec863e57560dffd41e58ab43df9bd7b8bf18497dc
parent0b08da1509cf4777588408185a5b2d64a58fc672 (diff)
add file trigger to restart the php-fpm service when new pool or new extension installed (F27+)
-rw-r--r--php72.spec14
1 files changed, 13 insertions, 1 deletions
diff --git a/php72.spec b/php72.spec
index d6ff511..fb5d11f 100644
--- a/php72.spec
+++ b/php72.spec
@@ -117,7 +117,7 @@
Summary: PHP scripting language for creating dynamic web sites
Name: 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
@@ -1927,6 +1927,7 @@ if [ $1 = 0 ]; then
fi
%endif
+%if 0%{?fedora} < 27 && 0%{?rhel} < 8
%postun fpm
%if %{with_systemd}
%systemd_postun_with_restart php-fpm.service
@@ -1935,6 +1936,13 @@ if [ $1 -ge 1 ]; then
/sbin/service 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 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
@@ -2135,6 +2143,10 @@ fi
%changelog
+* Thu Mar 15 2018 Remi Collet <remi@remirepo.net> - 7.2.4~RC1-2
+- add file trigger to restart the php-fpm service
+ when new pool or new extension installed (F27+)
+
* Tue Mar 13 2018 Remi Collet <remi@remirepo.net> - 7.2.4~RC1-1
- update to 7.2.4RC1