pm2-mon
monit pm2 process by "pgrep node", if only node process, run specified restart command/script.
(I make this thing only because pm2 sometimes crashes, I do not know why it crash, and I have to restart it anyway)
install
npm install pm2-mon -g
help
pm2-mon --help Usage: pm2-mon [options] monit pm2 process by "pgrep node",
run
pm2-mon -t 5000 -c example/restart.sh -n 3
suggestion
use tj/mon to run this pm2-mon script.
change log
0.0.3 add num param
License
MIT