[cpp-linbuild] 03/04: Use systemctl directly in scriptlets
Codeberg
noreply at shibboleth.net
Sun Feb 15 00:13:01 UTC 2026
This is an automated email from the git hooks/post-receive script.
codeberg pushed a commit to branch main
in repository cpp-linbuild.
View the commit online:
https://codeberg.org/Shibboleth/cpp-linbuild/commit/dd5ca5fc782fd5547ff4abe2c7dc4c847bcdc431
commit dd5ca5fc782fd5547ff4abe2c7dc4c847bcdc431
Author: John W. O'Brien <john at saltant.com>
AuthorDate: Sat Feb 14 22:16:54 2026 +0000
Use systemctl directly in scriptlets
---
common/SPECS/shibboleth-sp.spec | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/common/SPECS/shibboleth-sp.spec b/common/SPECS/shibboleth-sp.spec
index 18c899c..5b9b697 100644
--- a/common/SPECS/shibboleth-sp.spec
+++ b/common/SPECS/shibboleth-sp.spec
@@ -80,7 +80,7 @@ fi
%preun
# On final removal, restart Apache if running.
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
@@ -88,7 +88,7 @@ exit 0
%postun
# On upgrade, restart Apache if running.
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
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list