title: How to restart PM2 using cron?
body: <p>I need to find a cron command that would restart pm2 with a process but only if it's not already running</p>
  
  <p><code>pm2 start app.js</code> starts the app even if it's already running. </p>
  
  <p>what would be another command I could use that would only restart <code>app.js</code> if it's not already running and how would I write it in crontab?</p>