max-mapper / monu

menubar process monitor mac app [ALPHA]
https://github.com/maxogden/monu/releases
BSD 2-Clause "Simplified" License
1.11k stars 74 forks source link

Disable autostart of processes #24

Open marcbachmann opened 9 years ago

marcbachmann commented 9 years ago

I'd like to disable the autostart for some processes. Maybe we can expose it in the config:

// config.json
{
  "autostart": false,
  "logs": "./logs",
  "processes": {
    "redis": "redis-server",
    "postgres": "/usr/local/opt/postgresql/bin/postgres -D /usr/local/var/postgres",
    "mongodb": "/usr/local/bin/mongod --config /usr/local/etc/mongod.conf --auth"
  }
}

A more flexible solution would be to use an object literal or array for the process definition.

// config.json
{
  "logs": "./logs",
  "pids": "./pids",
  "processes": {
    "redis": {
      "command": "redis-server",
      "autostart": true
    }
  }
}
max-mapper commented 9 years ago

if we change the JSON format we'd need to make sure the config we pass to mongroup matches what it expects. But I like the 2nd one

gabhi commented 8 years ago

+1 i like 2nd option