I'm running Apache 2.2.3 on CentOS 5.5 and just noticed the following logrotate postrotate configuration in /etc/logrotate.d/httpd:
postrotate
/sbin/service httpd reload > /dev/null 2>/dev/null || true
endscript
Since this is set to run once per week, it does a hard reload for Apache, which seemingly kills all connections (is this right? I'm not an expert). Would it be safer to change the postrotate script to a graceful restart instead?
/usr/sbin/apachectl graceful > /dev/null
This is the postrotate behavior I already have for my virtual hosts. I don't understand why the httpd rotate scripts needs to do a hard reload.
Any advice on how to configure this properly will be greatly appreciated.
Thanks, Ralph