mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
arbiter: reopen log files first then signal workers
Workers may run under different uid/gid and don't have permission to create log files. After master opens log files and makes them rw-able when default umask is used, workers will be able to open them upon receiving USR1.
This commit is contained in:
parent
76ab68739e
commit
f7151821c6
@ -256,8 +256,8 @@ class Arbiter(object):
|
||||
SIGUSR1 handling.
|
||||
Kill all workers by sending them a SIGUSR1
|
||||
"""
|
||||
self.kill_workers(signal.SIGUSR1)
|
||||
self.log.reopen_files()
|
||||
self.kill_workers(signal.SIGUSR1)
|
||||
|
||||
def handle_usr2(self):
|
||||
"""\
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user