Skip to content

we-cli/PUM

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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){/**/})