Thursday, February 21, 2013

How to start gateone.py service and logout

So I want to start this on my server and be able to logout. So I use this command:
sudo nohup python gateone.py &

For the server to work correctly I had to run as sudo

Then to see if it is still running, logout, and log back in through ssh and run this command
ps -ef | grep gateone

You should see this:
me@myserver:~$ ps -ef | grep gateone
root 4780 4761 0 06:47 pts/0 00:00:00 sudo nohup python gateone.py
snow 4788 4761 0 06:48 pts/0 00:00:00 grep --color=auto gateone

No comments: