How to stop gunicorn properly

j7nn7k picture j7nn7k · Jan 30, 2013 · Viewed 79.9k times · Source

I'm starting gunicorn with the Django command python manage.py run_gunicorn. How can I stop gunicorn properly?

Note: I have a semi-automated server deployment with fabric. Thus using something like ps aux | grep gunicorn to kill the process manually by pid is not an option.

Answer

Voislav Sauca picture Voislav Sauca · Jan 30, 2013

To see the processes is ps ax|grep gunicorn and to stop gunicorn_django is pkill gunicorn.