Have gunicorn publish its pid and have logrotate bounce it so that the file handle migrates.

This commit is contained in:
yackob03 2014-01-31 19:23:37 -05:00
parent 23fa91c75b
commit b48748d957
2 changed files with 5 additions and 0 deletions

View file

@ -26,4 +26,8 @@
missingok
notifempty
create 644 root root
postrotate
kill -USR1 `cat /mnt/logs/gunicorn.pid`
endscript
}

View file

@ -3,3 +3,4 @@ workers = 8
worker_class = 'gevent'
timeout = 2000
daemon = True
pidfile = '/mnt/logs/gunicorn.pid'