I want to restart a Django server which is running using gunicorn.
I know how to use gunicorn in my system. But now I need to restart a remote server which is not set up by me.
I don't know masterpid
to restart the server how can I get the masterPID.
Usually I HUP
gunicorn with sudo kill -s HUP masterpid
.
I tried with ps aux|grep gunicorn
and I did not find the gunicorn.pid
file anywhere.
How can I get the masterpid
?