pm2 icon indicating copy to clipboard operation
pm2 copied to clipboard

Init scripts ?

Open zbal opened this issue 13 years ago • 4 comments

Any status for the init script? Need some help around for that? We're getting ready for the release and I wish I could use pm2 for the prod ;)

Enjoy your return to France and don't burn too much brain cells :D

zbal avatar Jul 15 '13 11:07 zbal

My bad it's there already. I'll give it a shot.

zbal avatar Jul 15 '13 11:07 zbal

I updated the script to reflect the latest changes of PM2. Tried on Ubuntu server everything is okay ;)

Be sure to update pm2 to the latest version :

npm install pm2@latest -g

https://github.com/Unitech/pm2#a8

Tell me if everything is good !

Unitech avatar Jul 16 '13 10:07 Unitech

Tried it on Ubuntu 12.04 and it seems to work.

I did notice that every time a command is issued, pm2 was getting executed by NPM2=$NODE $PM2 so it was printing the command list before stopping/starting.

alumowa avatar Jul 16 '13 18:07 alumowa

The useless variable was removed, the init script works well on Debian + Ubuntu. Now I should make it compatible with Arch and CentOS

Closing, Ty

Unitech avatar Jul 29 '13 08:07 Unitech