public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Remi Collet <remi@fedoraproject.org>
To: git-commits@fedoraproject.org
Subject: [rpms/php] private-php86: php-fpm: new systemd macros (#850268)
Date: Fri, 27 Nov 2026 07:25:22 GMT [thread overview]
Message-ID: <179576432209.1.16776366757758893511.rpms-php-2aecdb0951bb@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/php
Branch : private-php86
Commit : 2aecdb0951bbda2df19c90a8db9bb3f9430ab490
Author : Remi Collet <remi@fedoraproject.org>
Date : 2012-10-01T08:43:03+02:00
Stats : +13/-0 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/php/c/2aecdb0951bbda2df19c90a8db9bb3f9430ab490?branch=private-php86
Log:
php-fpm: new systemd macros (#850268)
---
diff --git a/php.spec b/php.spec
index 9dc80d2..b56dadd 100644
--- a/php.spec
+++ b/php.spec
@@ -1156,24 +1156,36 @@ rm files.* macros.php
%if %{with_fpm}
%post fpm
+%if 0%{?systemd_post:1}
+%systemd_post php-fpm.service
+%else
if [ $1 = 1 ]; then
# Initial installation
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
fi
+%endif
%preun fpm
+%if 0%{?systemd_preun:1}
+%systemd_preun php-fpm.service
+%else
if [ $1 = 0 ]; then
# Package removal, not upgrade
/bin/systemctl --no-reload disable php-fpm.service >/dev/null 2>&1 || :
/bin/systemctl stop php-fpm.service >/dev/null 2>&1 || :
fi
+%endif
%postun fpm
+%if 0%{?systemd_postun_with_restart:1}
+%systemd_postun_with_restart mysqld.service
+%else
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
if [ $1 -ge 1 ]; then
# Package upgrade, not uninstall
/bin/systemctl try-restart php-fpm.service >/dev/null 2>&1 || :
fi
+%endif
# Handle upgrading from SysV initscript to native systemd unit.
# We can tell if a SysV version of php-fpm was previously installed by
@@ -1301,6 +1313,7 @@ fi
%changelog
* Mon Oct 1 2012 Remi Collet <remi@fedoraproject.org> 5.4.7-9
- php-fpm: enable PrivateTmp
+- php-fpm: new systemd macros (#850268)
* Fri Sep 28 2012 Remi Collet <rcollet@redhat.com> 5.4.7-8
- systemd integration, https://bugs.php.net/63085
reply other threads:[~2026-11-27 7:25 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=179576432209.1.16776366757758893511.rpms-php-2aecdb0951bb@fedoraproject.org \
--to=remi@fedoraproject.org \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox