2
0
mirror of https://github.com/frappe/bench.git synced 2025-01-08 16:14:12 +00:00

fix: more reliable gunicorn restart

killasgroup will ensure that all child processes die even if gunicorn
fails to do it. This isn't truly required because stopwaitsecs and
gunicorn graceful timeout work fine. In any case, if supervisor has to
send SIGKILL, it better send it to entire process group.
This commit is contained in:
Ankush Menat 2023-11-03 21:38:47 +05:30
parent 255c9301e9
commit 2ec0c0a95a

View File

@ -11,6 +11,7 @@ autorestart=true
stdout_logfile={{ bench_dir }}/logs/web.log stdout_logfile={{ bench_dir }}/logs/web.log
stderr_logfile={{ bench_dir }}/logs/web.error.log stderr_logfile={{ bench_dir }}/logs/web.error.log
stopwaitsecs=40 stopwaitsecs=40
killasgroup=true
user={{ user }} user={{ user }}
directory={{ sites_dir }} directory={{ sites_dir }}