Forum Moderators: bakedjake
compress
missingok
/var/log/httpd/access_log {
daily
rotate 365
dateext
copytruncate
prerotate
/bin/web_logs.sh
postrotate
#/bin/mv /var/log/httpd/access_log.1.gz /var/log/httpd/access_log-`/bin/date +"%Y-%m-%d"`
/bin/cp /var/log/httpd/access_log.1.gz /var/log/httpd/access_log-`/bin/date +"%Y-%m-%d"`
endscript
}
/var/log/httpd/agent_log /var/log/httpd/error_log /var/log/httpd/referer_log /var/log/httpd/ssl_request_log /var/log/httpd/ssl_engine_log {
sharedscripts
copytruncate
size=1M
prerotate
/bin/web_logs.sh
endscript
}
/var/log/maillog {
size=500k
}
include /etc/logrotate.d 2 * * * * /directive
your example will not run every two minutes