I have a python program running on a centos machine. I used virtualenv (source activate) to activate a specific python and then I use the following command:
gunicorn -t 10000 -b 0.0.0.0:1234 start:app &
It works fine. But when i close the bash, my program doens't work anymore. when i open a new bash (through PUTTY), and type
ps -C gunicorn
i see the gunicorn process running. If i put all this on local.rc (to initialize together with the server) everything works fine always.
I have two questions. First one is:
Can i put a "forever" on gunicorn (like we put on node.js), or dettach gunicorn and virtualenv from the bash, in order to always run independent of closing the bash?
How can i solve this problem?