diff --git a/docker/uwsgi/consul-template-uwsgi.conf b/docker/uwsgi/consul-template-uwsgi.conf index 412a0b3d..b556ff55 100644 --- a/docker/uwsgi/consul-template-uwsgi.conf +++ b/docker/uwsgi/consul-template-uwsgi.conf @@ -3,7 +3,7 @@ template { destination = "/code/consul_config.py" } exec { - command = "uwsgi --die-on-term /etc/uwsgi/uwsgi.ini" + command = ["uwsgi", "/etc/uwsgi/uwsgi.ini"] splay = "60s" reload_signal = "SIGHUP" kill_signal = "SIGTERM" diff --git a/docker/uwsgi/uwsgi.ini b/docker/uwsgi/uwsgi.ini index 36ab3757..d26176cc 100644 --- a/docker/uwsgi/uwsgi.ini +++ b/docker/uwsgi/uwsgi.ini @@ -11,7 +11,6 @@ processes = 20 disable-logging = true ; increase buffer size for requests that send a lot of mbids in query params buffer-size = 8192 -; when uwsgi gets a sighup, quit completely and let runit restart us -exit-on-reload = true need-app = true -log-x-forwarded-for=true +log-x-forwarded-for = true +die-on-term = true