Auto Start pm2 on boot

To auto start pm2 on boot, run

pm2 startup

This will generate auto start script for your system.

Once you started all applications, you can save it with

pm2 save

To uninstall, run

pm2 unstartup systemd

See pm2