Have gunicorn publish its pid and have logrotate bounce it so that the file handle migrates.
This commit is contained in:
parent
23fa91c75b
commit
b48748d957
2 changed files with 5 additions and 0 deletions
|
@ -26,4 +26,8 @@
|
|||
missingok
|
||||
notifempty
|
||||
create 644 root root
|
||||
|
||||
postrotate
|
||||
kill -USR1 `cat /mnt/logs/gunicorn.pid`
|
||||
endscript
|
||||
}
|
|
@ -3,3 +3,4 @@ workers = 8
|
|||
worker_class = 'gevent'
|
||||
timeout = 2000
|
||||
daemon = True
|
||||
pidfile = '/mnt/logs/gunicorn.pid'
|
Reference in a new issue