Skip to content

Commit

Permalink
Merge pull request #30 from wiremind/master
Browse files Browse the repository at this point in the history
Graceful shutdown nginx and uwsgi
  • Loading branch information
tiangolo authored Jun 22, 2018
2 parents 8d5c248 + 870a7a0 commit 85196f3
Show file tree
Hide file tree
Showing 10 changed files with 20 additions and 0 deletions.
2 changes: 2 additions & 0 deletions python2.7-alpine3.7/supervisord.ini
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,5 @@ stdout_logfile=/dev/stdout
stdout_logfile_maxbytes=0
stderr_logfile=/dev/stderr
stderr_logfile_maxbytes=0
# Graceful stop, see http://nginx.org/en/docs/control.html
stopsignal=QUIT
2 changes: 2 additions & 0 deletions python2.7-alpine3.7/uwsgi.ini
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@
socket = /tmp/uwsgi.sock
chown-socket = nginx:nginx
chmod-socket = 664
# Graceful shutdown on SIGTERM, see https://github.com/unbit/uwsgi/issues/849#issuecomment-118869386
hook-master-start = unix_signal:15 gracefully_kill_them_all
2 changes: 2 additions & 0 deletions python2.7/supervisord.conf
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,5 @@ stdout_logfile=/dev/stdout
stdout_logfile_maxbytes=0
stderr_logfile=/dev/stderr
stderr_logfile_maxbytes=0
# Graceful stop, see http://nginx.org/en/docs/control.html
stopsignal=QUIT
2 changes: 2 additions & 0 deletions python2.7/uwsgi.ini
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@
socket = /tmp/uwsgi.sock
chown-socket = nginx:nginx
chmod-socket = 664
# Graceful shutdown on SIGTERM, see https://github.com/unbit/uwsgi/issues/849#issuecomment-118869386
hook-master-start = unix_signal:15 gracefully_kill_them_all
2 changes: 2 additions & 0 deletions python3.5/supervisord.conf
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,5 @@ stdout_logfile=/dev/stdout
stdout_logfile_maxbytes=0
stderr_logfile=/dev/stderr
stderr_logfile_maxbytes=0
# Graceful stop, see http://nginx.org/en/docs/control.html
stopsignal=QUIT
2 changes: 2 additions & 0 deletions python3.5/uwsgi.ini
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@
socket = /tmp/uwsgi.sock
chown-socket = nginx:nginx
chmod-socket = 664
# Graceful shutdown on SIGTERM, see https://github.com/unbit/uwsgi/issues/849#issuecomment-118869386
hook-master-start = unix_signal:15 gracefully_kill_them_all
2 changes: 2 additions & 0 deletions python3.6-alpine3.7/supervisord.ini
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,5 @@ stdout_logfile=/dev/stdout
stdout_logfile_maxbytes=0
stderr_logfile=/dev/stderr
stderr_logfile_maxbytes=0
# Graceful stop, see http://nginx.org/en/docs/control.html
stopsignal=QUIT
2 changes: 2 additions & 0 deletions python3.6-alpine3.7/uwsgi.ini
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@
socket = /tmp/uwsgi.sock
chown-socket = nginx:nginx
chmod-socket = 664
# Graceful shutdown on SIGTERM, see https://github.com/unbit/uwsgi/issues/849#issuecomment-118869386
hook-master-start = unix_signal:15 gracefully_kill_them_all
2 changes: 2 additions & 0 deletions python3.6/supervisord.conf
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,5 @@ stdout_logfile=/dev/stdout
stdout_logfile_maxbytes=0
stderr_logfile=/dev/stderr
stderr_logfile_maxbytes=0
# Graceful stop, see http://nginx.org/en/docs/control.html
stopsignal=QUIT
2 changes: 2 additions & 0 deletions python3.6/uwsgi.ini
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@
socket = /tmp/uwsgi.sock
chown-socket = nginx:nginx
chmod-socket = 664
# Graceful shutdown on SIGTERM, see https://github.com/unbit/uwsgi/issues/849#issuecomment-118869386
hook-master-start = unix_signal:15 gracefully_kill_them_all

0 comments on commit 85196f3

Please sign in to comment.