Logrotate in Rails

September 29th, 2007 by pyrat

Just a wee snippet for logrotate.
Open /etc/logrotate.conf or find it.

Then drop this at the bottom:


/var/www/apps/oentries/current/log/*.log {
daily
missingok
rotate 14
compress
delaycompress
notifempty
copytruncate
}

Leave a Reply