I need to find a cron command that would restart pm2 with a process but only if it's not already running
pm2 start app.js
starts the app even if it's already running.
what would be another command I could use that would only restart app.js
if it's not already running and how would I write it in crontab?