mongroup

1.3.0 • Public • Published

node-mongroup

A nodejs port of mongroup, a group-based process monitor backed by mon.

Installation

$ npm install -g mongroup

mongroup(1)

The mongroup executable is also aliased as mg.


  Usage: mongroup [options]

  Options:

    -h, --help           output usage information
    -V, --version        output the version number
    -c, --config <path>  load configuration [./mongroup.conf]
    -j, --json           output json

  commands:

    status           output process status
    stop [names]     stop all or specified processes
    start [names]    start all or specified processes
    restart [names]  restart all or specified processes

Configuration

Example configuration.

# settings 
 
logs = /tmp/logs
pids = /tmp/pids
 
# web app 
 
web-1 = node server 9001
web-2 = node server 9002
web-3 = node server 9003
web-4 = node server 9004

JSON output

$ mg status --json

{
  "web-1": {
    "state": "alive",
    "pid": 3562,
    "uptime": 1433
  },
  "web-2": {
    "state": "alive",
    "pid": 3565,
    "uptime": 1433
  },
  "web-3": {
    "state": "alive",
    "pid": 3567,
    "uptime": 1433
  },
  "web-4": {
    "state": "alive",
    "pid": 3569,
    "uptime": 1433
  }
}

License

MIT

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.3.0
    0
    • latest

Version History

Package Sidebar

Install

npm i mongroup

Weekly Downloads

9

Version

1.3.0

License

MIT

Last publish

Collaborators

  • tjholowaychuk