How to stop gunicorn properly
To see the processes is ps ax|grep gunicorn
and to stop gunicorn_django is pkill gunicorn
.
One option would be to use Supervisor
to manage Gunicorn.
Then again i don't see why you can't kill the process via Fabric
.
Assuming you let Gunicorn write a pid file you could easily read that file in a Fabric
command.
Something like this should work:
run("kill `cat /path/to/your/file/gunicorn.pid`")