Hi Raphael,

You can use 'pm2' (https://www.npmjs.com/package/pm2) to manage your node 
processes.

1. Start the node applications from pm2 instead of vanilla node

pm2 start server.js --name=someName

2. Use the startup command (http://pm2.keymetrics.io/docs/usage/startup/) to 
create a startup script with

pm2 startup

3. The above command will give you a new command (depending on your OS) to 
execute as sudo. Just copy, paste and execute that command

4. After this freeze your node process with

pm2 dump

This should do it!

-- 
Job board: http://jobs.nodejs.org/
New group rules: 
https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to nodejs+unsubscr...@googlegroups.com.
To post to this group, send email to nodejs@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/nodejs/b19fcd1b-29bc-4f52-b643-acc729de778a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to