Init scripts ?
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
My bad it's there already. I'll give it a shot.
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 !
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.
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