mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 03:59:50 +08:00
fixes in logrotate.conf
This commit is contained in:
parent
70be638f47
commit
b0d676f2f2
|
@ -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
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user