[cpp-linbuild] 04/05: Use systemctl directly in scriptlets
Codeberg
noreply at shibboleth.net
Sun Feb 15 00:12:11 UTC 2026
This is an automated email from the git hooks/post-receive script.
codeberg pushed a commit to branch maint-3
in repository cpp-linbuild.
View the commit online:
https://codeberg.org/Shibboleth/cpp-linbuild/commit/bcdb646348a8f816fc659aa7f5c6f2c4d081aa8f
commit bcdb646348a8f816fc659aa7f5c6f2c4d081aa8f
Author: John W. O'Brien <john at saltant.com>
AuthorDate: Sat Feb 14 21:05:46 2026 +0000
Use systemctl directly in scriptlets
---
common/SPECS/shibboleth.spec | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/common/SPECS/shibboleth.spec b/common/SPECS/shibboleth.spec
index 371e631..bda485f 100644
--- a/common/SPECS/shibboleth.spec
+++ b/common/SPECS/shibboleth.spec
@@ -1,6 +1,6 @@
Name: shibboleth
Version: 3.5.2
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: Open source system for attribute-based Web SSO
Group: Productivity/Networking/Security
Vendor: Shibboleth Consortium
@@ -256,7 +256,7 @@ fi
%systemd_preun shibd.service
if [ $1 -eq 0 ] ; then
- %{!?_without_builtinapache:/sbin/service httpd status 1>/dev/null && /sbin/service httpd restart 1>/dev/null}
+ %{!?_without_builtinapache:/usr/bin/systemctl try-restart httpd.service 1>/dev/null}
exit 0
fi
exit 0
@@ -266,7 +266,7 @@ exit 0
# On upgrade, restart components if they're already running.
%systemd_postun_with_restart shibd.service
if [ $1 -ge 1 ] ; then
- %{!?_without_builtinapache:/sbin/service httpd status 1>/dev/null && /sbin/service httpd restart 1>/dev/null}
+ %{!?_without_builtinapache:/usr/bin/systemctl try-restart httpd.service 1>/dev/null}
exit 0
fi
@@ -321,6 +321,9 @@ exit 0
%doc %{pkgdocdir}/api
%changelog
+* Sat Feb 14 2026 John W. O'Brien <john at saltant.com> - 3.5.2-2
+- Use systemctl directly in scriptlets
+
* Tue Dec 16 2025 Scott Cantor <cantor.2 at osu.edu> - 3.5.2-1
- Bump version.
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list