logrotate copytruncate ruby


vim /etc/logrotate.d/rails

/path/to/log/*.log {
daily
size 100M
missingok
notifempty
rotate 4
compress
delaycompress
copytruncate
nodateext
}

Leave a Reply

Your email address will not be published. Required fields are marked *