From: František Dvořák Date: Sun, 14 Sep 2014 20:27:31 +0000 (+0200) Subject: Reload httpd configuration after removal. httpd restart on upgrade probably not needed. X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=95708405943042c4f4ebcaa885ab4c87911ef1f8;p=rOCCI-packaging-fedora.git Reload httpd configuration after removal. httpd restart on upgrade probably not needed. --- diff --git a/rOCCI-server.spec b/rOCCI-server.spec index ad1d395..b48b374 100644 --- a/rOCCI-server.spec +++ b/rOCCI-server.spec @@ -232,8 +232,11 @@ if [ "$1" -ge "1" ] ; then # Upgrade semodule -i %{_datadir}/selinux/packages/%{name}/%{semodule_name}.pp 2>/dev/null || : restorecon -R %{app_root} %{_localstatedir}/log/rocci-server 2>/dev/null || : fi -# rOCCI-server.target doesn't support restarting, use httpd instead -%systemd_postun httpd.service +if [ "$1" -lt "1" ] ; then # Final removal + # reload httpd needed + systemctl reload httpd.service >/dev/null 2>&1 +fi +%systemd_postun %files