support systemctl

This commit is contained in:
Roland Gruber 2013-11-09 13:27:20 +00:00
parent 0ccb20a343
commit 916e5474c4
1 changed files with 10 additions and 2 deletions

View File

@ -98,7 +98,11 @@ fi
/etc/init.d/apache2 reload
%endif
%if %is_fedora
/etc/init.d/httpd reload
if [ -e /etc/init.d/httpd ]; then
/etc/init.d/httpd reload
else
/bin/systemctl reload httpd.service
fi
%endif
%postun
@ -106,7 +110,11 @@ fi
/etc/init.d/apache2 reload
%endif
%if %is_fedora
/etc/init.d/httpd reload
if [ -e /etc/init.d/httpd ]; then
/etc/init.d/httpd reload
else
/bin/systemctl reload httpd.service
fi
%endif
%files