Skip to content

Latest commit

 

History

History
41 lines (31 loc) · 1.29 KB

README.md

File metadata and controls

41 lines (31 loc) · 1.29 KB

Shell Process Manager: PUM

Inspired by PM2 BUT implemented madly

  • Cross-Platform: Windows & Unix
  • Terminal CLI & node.js API
  • Start & Stop & Restart & List
  • Log & Watch
  • Save & Resurrect
  • Autostart on boot
  • Auto-restart on crash

## for terminal CLI
$ npm install --global pum

$ pum start serve . -p 3020
> Starting 5452: $ serve . -p 3020

$ pum stop 5452  ## PID
> Stopping 5452
// for node.js API
var PUM = require('pum').PUM
var pum = new PUM()

var prc = pum.start('mongod --dbpath xxx')

pum.stop(prc.pid, function(e, doc){/**/})