I'm trying to keep an application on my ubuntu server running so that Google has time ping it, but the app keeps shutting down when I log out.
I start the Nodejs app with supervisor
to monitor changes (via a shell script)
I found commands like nohup
, but I'm really clueless when it comes to running background services other than typing simple commands like service httpd start
which seems to work pretty well for Apache on CentOS!
Do I need to create another user to run services on? I have a Linode instance with Ubuntu 10.04
run.sh
cd myapp/src/main/node
supervisor -w "myapp/src/main/node,myapp2/src/main/node,./" run-apps.js