Skip to content

Instantly share code, notes, and snippets.

@yesidlazaro
Created July 20, 2017 02:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yesidlazaro/f63138134fa82eb4845a07e0d56804d0 to your computer and use it in GitHub Desktop.
Save yesidlazaro/f63138134fa82eb4845a07e0d56804d0 to your computer and use it in GitHub Desktop.
sudo su
as root, rm /etc/init.d/pm2-init.sh
as root, run pm2 startup. it still complains that /etc/init.d/pm2-init.sh links already exists, despite just removing it
as root, pm2 start (my processes, eg ecosystem.json), pm2 start ecosystem.json
as root, pm2 save
reboot (if ubuntu)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment