Regarding nohup, yes here is my start function:
export NODE_ENV=production
start() {
echo -n $"Starting express"
nohup node web/app.js > logs/express.log 2>&1
}
I created an init.d script and added it to the services list using
chkconfig on linux. Then to control it I just run: service express
start (or stop or restart) Just copy an existing script in
/etc/init.d/ and modify it for express. Once I caught all my errors
in the express app, this method has been really reliable for me.
S