wblog/config/logrotate.conf.example

14 lines
237 B
Plaintext
Raw Permalink Normal View History

2018-01-21 02:01:09 +08:00
# truncate your rails log every day
# Usage:
# `cp logrotate.conf.example /etc/logrotate.d/wblog`
/data/www/wblog/current/log/*.log {
daily
missingok
rotate 7
compress
delaycompress
notifempty
copytruncate
su ruby ruby
}