node expamle.js &
apt-get install upstart // yum here for Centos
------
#!upstart
description "my app"
start on started mountall
stop on shutdown
# Automatically Respawn:
respawn
respawn limit 99 5
env NODE_ENV=production
exec node /somepath/myapp/app.js >> /var/log/myapp.log 2>&1
----
sudo start myapp
sudo stop myapp
sudo restart myapp
$npm install forever -g
$forever start app.js