title: What is the difference between running node-daemon and pm2?
body: <p>I would like to run node.js script in the background forever. I found 2 options. Node-daemon and pm2. I think both can achieve the goal of running a node.js process in the background. What are the differences between these 2 ways of running node.js processes in the background?</p>
  
  <p><a href="https://github.com/Unitech/pm2" rel="nofollow">https://github.com/Unitech/pm2</a></p>
  
  <p><a href="https://www.npmjs.com/package/node-daemon" rel="nofollow">https://www.npmjs.com/package/node-daemon</a></p>