Forum Moderators: bakedjake
compress
missingok
rotate 5
weekly
/var/log/httpd/access_log /var/log/httpd/error_log {
sharedscripts
size=4M
prerotate
/bin/web_logs.sh
endscript
postrotate
kill -HUP `cat /var/run/httpd.pid`
endscript
}
/var/log/maillog {
size=500k
}
include /etc/logrotate.d
Based on this conf file, so which will make it rotate my file rotate weekly or once it has reached 4 MB?
& for not to delete the log file after compression which command should I put & where should i put it?
I found this site but was not sure how to use the commands for not deleting it
[rt.com...]