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 -g
pm2 startup
pm2-root
found in /etc/systemd/system
systemctl enable pm2-root
, service pm2-root status
pm2 unstartup
, pm2 startup
; documentationpm2 start dist\index.js --name YourNodeApp
pm2 save
reboot
pm2 ls
should show your YourNodeApp
online