pum
v0.0.6
Published
> Inspired by [PM2](https://github.com/Unitech/PM2) **BUT** implemented madly
Downloads
4
Readme
Shell Process Manager: PUM
Inspired by PM2 BUT implemented madly
- [x] Cross-Platform: Windows & Unix
- [x] Terminal CLI & node.js API
- [x] 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){/**/})
- [x] Pretty CLI table output by cli-table
- [x] Program data persistence via nedb
- [x] Deadly process kill via tree-kill
- [x] Start without prompts in Windows using invisible.vbs (Interesting..)
- [x] Shell command quoted with shell-quote
- [x] Test with supertest