fixes in logrotate.conf
This commit is contained in:
parent
70be638f47
commit
b0d676f2f2
|
@ -7,6 +7,7 @@ require_relative 'environment'
|
||||||
|
|
||||||
def setup_log
|
def setup_log
|
||||||
Clockwork.configure do |config|
|
Clockwork.configure do |config|
|
||||||
|
config[:logger].close
|
||||||
config[:logger] = Logger.new(ENV["CLOCK_LOG"])
|
config[:logger] = Logger.new(ENV["CLOCK_LOG"])
|
||||||
end if ENV["CLOCK_LOG"]
|
end if ENV["CLOCK_LOG"]
|
||||||
end
|
end
|
||||||
|
|
|
@ -13,13 +13,15 @@ create 0644
|
||||||
/home/discourse/discourse/log/clockwork.log
|
/home/discourse/discourse/log/clockwork.log
|
||||||
{
|
{
|
||||||
postrotate
|
postrotate
|
||||||
pkill -f clockwork -HUP
|
pkill -HUP -f clockwork
|
||||||
endscript
|
endscript
|
||||||
}
|
}
|
||||||
/home/discourse/discourse/log/sidekiq.log
|
/home/discourse/discourse/log/sidekiq.log
|
||||||
{
|
{
|
||||||
|
# Should we just kill sidekiq?
|
||||||
|
# https://github.com/mperham/sidekiq/issues/1008
|
||||||
postrotate
|
postrotate
|
||||||
pkill -f sidekiq -USR2
|
pkill -USR2 -f sidekiq
|
||||||
endscript
|
endscript
|
||||||
}
|
}
|
||||||
/home/discourse/discourse/log/production.log
|
/home/discourse/discourse/log/production.log
|
||||||
|
@ -33,6 +35,6 @@ create 0644
|
||||||
/home/discourse/discourse/log/thin*.log
|
/home/discourse/discourse/log/thin*.log
|
||||||
{
|
{
|
||||||
postrotate
|
postrotate
|
||||||
pkill -f 'thin server' -USR1
|
pkill -USR1 -f 'thin server'
|
||||||
endscript
|
endscript
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue