Linux Configure Files to rotate Weekly

vi /etc/logrotate.conf

/usr/local/httpd-2.2.14/logs/mod_jk.log {
weekly
rotate 4
postrotate
service apache2 restart
endscript
compress
}