You can simply add a cronjob, like:
@reboot cd /path/to/app && pm2 start app.js
Remember to install cron in the user who will run the daemon, NOT CORT .
If you cannot install cron, just install cron where you prefer, and add the -u option to specify the user of the running daemon.
source share