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
|
||||
}
|
Reference in a new issue