
LogRotate is calling Apache to reload and for whatever reason, Apache can't reload (shows up in the logs that the graceful restart was called, but never makes it)
Solution to the problem (that doesn't mean uninstalling LogRotate).
Edit file /etc/logrorate.d/httpd
Change code to and save. Restart Apache afterwards just to be safe it does not happen again next month.
- Code: Select all
/var/log/httpd/*_log /var/log/httpd/apache_runtime_status /var/log/httpd/ssl_mutex {
rotate 5
copytruncate
monthly
missingok
notifempty
nocompress
}
This will have logroate simply copy the log file, then truncate it so Apache can keep writing to it like normal. Apache will not need to be called for a restart and everything is good again.
