I want to restart nodemon server app.js programmatically every 20 minutes with restart.js.
I'm starting with nodemon -r esm app.js . and server.js should relaunch it somehow.
I tried with pm2 and forever various combinations I don't even remember since none of them worked.