Skip to content
This repository was archived by the owner on Nov 20, 2022. It is now read-only.
Doudou8 edited this page Aug 17, 2020 · 4 revisions
  • port : Port number
  • defaultStatus : In case where the output status is not listed, this is the fallback status
  • status : List all the possible statuses with their corresponding color
{
  "port": 5000,
  "defaultStatus": "inactive",
  "status": {
    "active": {
      "color": "#2ecc71"
    },
    "inactive": {
      "color": "#e74c3c"
    }
  }
}
  • displayName : Process display name
  • processName : Real process name
  • command :
    • execute : List all the possible statuses with their corresponding color
    • output : Associate the output from the execute property with a status
[
  {
    "displayName": "Test service",
    "processName": "testService",
    "command": {
      "execute": "pm2 jlist | jq '.[0].pm2_env.status",
      "output": {
        "active": "online",
        "inactive": "stopped"
      }
    }
  },
  ...
]

Quick Start

  1. Installation
  2. Config
  3. Run

Clone this wiki locally