Official doc

http://pm2.keymetrics.io/docs/usage/startup/

Generate processes for auto-start after reboot

https://futurestud.io/tutorials/pm2-restart-processes-after-system-reboot

Cheatsheet

https://devhints.io/pm2