I am using pm2 to start a node.js process, and I would like this process to be started automatically when the system (Ubuntu 14.04 on Intel Atom processor) is booted. I have
What steps work for me on Ubuntu 18.04.4
npm i pm2 -gpm2 startup
pm2-root found in /etc/systemd/systemsystemctl enable pm2-root, service pm2-root status
pm2 unstartup, pm2 startup; documentationpm2 start dist\index.js --name YourNodeApppm2 saverebootpm2 ls should show your YourNodeApp online