/var/log/httpd/*access_log
/var/log/httpd/*combined_log
/var/log/httpd/*agent_log
/var/log/httpd/*error_log
/var/log/httpd/*referer_log
/var/log/httpd/*request_log
/var/log/httpd/*rewrite_log
{
    olddir /var/log/archive/httpd
    sharedscripts
    postrotate
	if /bin/systemd_booted; then
		/bin/systemctl reload httpd.service
	else
		/sbin/service httpd flush-logs > /dev/null
	fi
	# let old children drain and release the moved logs before compression
	# (async graceful reload; else gzip races the still-open fd)
	sleep 180
    endscript
}
