Socket
Book a DemoInstallSign in
Socket

mongroup

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mongroup

process monitor via mon(1)

latest
npmnpm
Version
1.3.0
Version published
Maintainers
1
Created
Source

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

Keywords

monit

FAQs

Package last updated on 25 Feb 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts