diff --git a/puppet/zulip/templates/uwsgi.ini.template.erb b/puppet/zulip/templates/uwsgi.ini.template.erb index c43d66ec35..e3f5e20d26 100644 --- a/puppet/zulip/templates/uwsgi.ini.template.erb +++ b/puppet/zulip/templates/uwsgi.ini.template.erb @@ -18,6 +18,7 @@ stats=/home/zulip/deployments/uwsgi-stats <% if @uwsgi_rolling_restart != '' -%> master-fifo=/home/zulip/deployments/uwsgi-control +hook-post-fork=chdir:/home/zulip/deployments/current # lazy-apps are required for rolling restarts: # https://uwsgi-docs.readthedocs.io/en/latest/articles/TheArtOfGracefulReloading.html#preforking-vs-lazy-apps-vs-lazy lazy-apps=true