Apache reload

This commit is contained in:
Roland Gruber 2012-10-07 10:19:17 +00:00
parent 59ba19c292
commit cf66d9134f
3 changed files with 11 additions and 8 deletions

View File

@ -93,18 +93,18 @@ if [ ! -f /var/lib/%{lam_dir}/config/config.cfg ]; then
fi
fi
%if %is_suse
/etc/init.d/apache2 restart
/etc/init.d/apache2 reload
%endif
%if %is_fedora
/etc/init.d/httpd restart
/etc/init.d/httpd reload
%endif
%postun
%if %is_suse
/etc/init.d/apache2 restart
/etc/init.d/apache2 reload
%endif
%if %is_fedora
/etc/init.d/httpd restart
/etc/init.d/httpd reload
%endif
%files
@ -132,6 +132,9 @@ fi
%{httpd_confdir}
%changelog
* Sun Oct 07 2012 - Roland Gruber post@rolandgruber.de
- Apache reload instead of restart
* Wed Jun 08 2011 - Roland Gruber post@rolandgruber.de
- Install into /usr/share/ldap-account-manager

View File

@ -92,9 +92,9 @@ if [ "$1" = "configure" ]; then
for server in $restart; do
server=${server%,}
if [ -x /usr/sbin/invoke-rc.d ]; then
invoke-rc.d $server restart
invoke-rc.d $server reload
else
/etc/init.d/$server restart
/etc/init.d/$server reload
fi
done
fi

View File

@ -36,9 +36,9 @@ if [ -f /usr/share/debconf/confmodule ]; then
for server in $restart; do
server=${server%,}
if [ -x /usr/sbin/invoke-rc.d ]; then
invoke-rc.d $server restart
invoke-rc.d $server reload
else
/etc/init.d/$server restart
/etc/init.d/$server reload
fi
done
fi