Sign up ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I have been using UWSGI behind Nginx and I've set supervisord to restart the Nginx and UWSGI instances in case of a server reboot.

I am debugging my application and sometimes need to reload the application. According to this page I should be sending SIGHUP in order to do a graceful reload.

I could find a stopsignal config setting on this page, but I couldn't find any entry related to something like "reloadsignal" or "restartsignal".

Any ideas?

share|improve this question

4 Answers 4


    The signal used to kill the program when a stop is requested. 
    This can be any of TERM, HUP, INT, QUIT, KILL, USR1, or USR2.

    Default: TERM

    Required: No.

    Introduced: 3.0

stopsignal=HUP is what you're looking for:

user = uwsgi
command=/usr/sbin/uwsgi ...
stderr_logfile = /var/log/uwsgi/err.log
stdout_logfile = /var/log/uwsgi/out.log
share|improve this answer
When I test this, it said my UWSGI process is "stopped", not running or restarted. Besides, pressing "stop" button and expecting a reload? Doesn't make that much sense. But, thanks for the effort :) – Kerem Ulutaş Sep 2 '12 at 14:36

I've reported an issue on this here, I hope it will be accepted as a feature request and we all have the chance to use that power.

share|improve this answer

If you run supervisorctl status you'll see the pid of the uwsgi process. Something like this,

$ supervisorctl status
uwsgi                           RUNNING    pid 25700, uptime 0:15:48

All you need to do is send HUP signal manually to this pid.

kill -HUP 25700

You can automated it by,

supervisorctl status signal | grep -o 'pid\s\+\d*'| awk '{print $2}' | xargs -n 1  kill -HUP
share|improve this answer

After using this supervisorctl status signal | grep -o 'pid\s+\d*'| awk '{print $2}' | xargs -n 1 kill -HUP for graceful reload Nginx was not being able to get connection from upstream

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.