Neverending Pun Machine

    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

    Install

    npm i mongroup

    DownloadsWeekly Downloads

    82

    Version

    1.3.0

    License

    MIT

    Last publish

    Collaborators

    • tjholowaychuk