After logrotate run, file /usr/local/apache/logs/error_log was missing.
I found the problem: When logrotate run, error_log is compressed and moved to folder ./archive but new error_log was not created because logrotate cant restart apache service. Apache only create ou read new file after restart ou graceful command.
Checking the file: /etc/logrotate.d/httpd
I found the problem in line:
/sbin/service httpd reload > /dev/null 2>/dev/null || true
"reload" is not used anymore (im running apache 2.2.6, whm , cpanel all is updated with last stable version)
I solved changing that line to:
/sbin/service httpd graceful > /dev/null 2>/dev/null || true
Is this correct?
Thanks
I found the problem: When logrotate run, error_log is compressed and moved to folder ./archive but new error_log was not created because logrotate cant restart apache service. Apache only create ou read new file after restart ou graceful command.
Checking the file: /etc/logrotate.d/httpd
I found the problem in line:
/sbin/service httpd reload > /dev/null 2>/dev/null || true
"reload" is not used anymore (im running apache 2.2.6, whm , cpanel all is updated with last stable version)
I solved changing that line to:
/sbin/service httpd graceful > /dev/null 2>/dev/null || true
Is this correct?
Thanks
Last edited: