Skip to content

Running PM2

Gladiator10864 edited this page Jul 13, 2018 · 2 revisions

PM2 is a NodeJS package that monitors and can automatically restart scripts upon failure. You can use this for all running scripts so they automatically restart upon unforeseen failures.

Installing

  1. Download and install the nodejs installer for MacOS X here, https://nodejs.org/dist/v8.11.3/node-v8.11.3.pkg
  2. Open a terminal session and run npm install pm2 -g
  3. To run raidscan.py under pm2, use command, pm2 start raidscan.py --interpreter python3.6

More info on pm2 can be found here

Clone this wiki locally