How to use supervisor fo start/stop uWSGI application?
By default supervisor send SIGTERM on stop. SIGTERM in uWSGI means 'brutal reload'.
You have to change it to QUIT or INT:
stopsignal=QUIT
should be enough
Another approach (discouraged) is adding --die-on-term to uWSGI command line to change its default behaviour
- project supervisor config file
add
stopsignal=INT
- project uwsgi config file
remove
daemonize=xxx.log
to disable daemon mode