fixes in logrotate.conf

This commit is contained in:
Michael Brown 2013-06-18 03:04:01 -04:00
parent 70be638f47
commit b0d676f2f2
2 changed files with 6 additions and 3 deletions

View File

@ -7,6 +7,7 @@ require_relative 'environment'
def setup_log
Clockwork.configure do |config|
config[:logger].close
config[:logger] = Logger.new(ENV["CLOCK_LOG"])
end if ENV["CLOCK_LOG"]
end

View File

@ -13,13 +13,15 @@ create 0644
/home/discourse/discourse/log/clockwork.log
{
postrotate
pkill -f clockwork -HUP
pkill -HUP -f clockwork
endscript
}
/home/discourse/discourse/log/sidekiq.log
{
# Should we just kill sidekiq?
# https://github.com/mperham/sidekiq/issues/1008
postrotate
pkill -f sidekiq -USR2
pkill -USR2 -f sidekiq
endscript
}
/home/discourse/discourse/log/production.log
@ -33,6 +35,6 @@ create 0644
/home/discourse/discourse/log/thin*.log
{
postrotate
pkill -f 'thin server' -USR1
pkill -USR1 -f 'thin server'
endscript
}