codeskyblue / gosuv

Deprecated!!! Process managerment writtern by golang, inspired by python-supervisor
MIT License
644 stars 180 forks source link

supervisor parity ? #25

Open c0b opened 7 years ago

c0b commented 7 years ago

for replacement of Supervisor/supervisor#122 it's better to have all supervisor features, or at least most useful features, especially need:

c0b commented 7 years ago

could you also have:

c0b commented 7 years ago

http://supervisord.org/configuration.html support all these configuration file locations:

  1. $CWD/supervisord.conf
  2. $CWD/etc/supervisord.conf
  3. /etc/supervisord.conf
  4. /etc/supervisor/supervisord.conf (since Supervisor 3.3.0)
  5. ../etc/supervisord.conf (Relative to the executable)
  6. ../supervisord.conf (Relative to the executable)

this gosuv may not necessarily support all but I like at least support /etc/gosuv

c0b commented 7 years ago

http://supervisord.org/configuration.html#environment-variables Environment Variables is another wanted feature, the gosuv doesn't have to support exactly same syntax, but need somewhat similar way to reference from environment variable

[program:example]
command=/usr/bin/example --loglevel=%(ENV_LOGLEVEL)s
codeskyblue commented 7 years ago

Why I did not put config file into /etc/supervisord.conf is because I want to change the settings from the web. But /etc folder is the readonly storage.

Environment should supported now.

- name: Test
  command: echo Hello ${WORLD}
  environ:
    - WORLD="New World"
  directory: /
codeskyblue commented 7 years ago

I think the most difference between python-supervisor is gosuv got a nice web which I used nearly everyday.