mirror of
https://github.com/discourse/discourse.git
synced 2025-09-05 08:59:27 +08:00
Documentation update: work in progress
This commit is contained in:
parent
bd1b4d3130
commit
a908f00771
7 changed files with 158 additions and 14 deletions
38
config/logrotate.conf
Normal file
38
config/logrotate.conf
Normal file
|
@ -0,0 +1,38 @@
|
|||
# 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
|
||||
pkill -f clockwork -HUP
|
||||
endscript
|
||||
}
|
||||
/home/discourse/discourse/log/sidekiq.log
|
||||
{
|
||||
postrotate
|
||||
pkill -f sidekiq -USR2
|
||||
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
|
||||
pkill -f 'thin server' -USR1
|
||||
endscript
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue