discourse/config/logrotate.conf

41 lines
744 B
Plaintext
Raw Normal View History

2013-06-15 13:25:41 +08:00
# rotate log files daily, keep 32 days
daily
rotate 32
# create new (empty) log files after rotating old ones
create
compress
missingok
create 0644
/home/discourse/discourse/log/clockwork.log
{
postrotate
2013-06-18 15:04:01 +08:00
pkill -HUP -f clockwork
2013-06-15 13:25:41 +08:00
endscript
}
/home/discourse/discourse/log/sidekiq.log
{
2013-06-18 15:04:01 +08:00
# Should we just kill sidekiq?
# https://github.com/mperham/sidekiq/issues/1008
2013-06-15 13:25:41 +08:00
postrotate
2013-06-18 15:04:01 +08:00
pkill -USR2 -f sidekiq
2013-06-15 13:25:41 +08:00
endscript
}
/home/discourse/discourse/log/production.log
{
# ????
}
/home/discourse/discourse/log/production_errors.log
{
# production_errors is opened on demand, no need to reopen
}
/home/discourse/discourse/log/thin*.log
{
postrotate
2013-06-18 15:04:01 +08:00
pkill -USR1 -f 'thin server'
2013-06-15 13:25:41 +08:00
endscript
}