Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: start delay and dependencies #1336

Closed
tonic12 opened this issue Mar 12, 2020 · 1 comment
Closed

Feature request: start delay and dependencies #1336

tonic12 opened this issue Mar 12, 2020 · 1 comment

Comments

@tonic12
Copy link

tonic12 commented Mar 12, 2020

Hi!

I think supervisord need add two very important features:

  • start delay - many times i need start some prepare scripts before runing main process.
  • start dependencies - i want start main process only if another program was started

EXAMPLE:

[program:consul_configure]
command=/consul/consul_configure.sh
redirect_stderr=true
priority=1

[program:consul]
**startdelaysecs=3**
command=/consul/consul agent -config-dir /consul/config
autorestart=true
redirect_stderr=true
priority=2

[program:ha_template]
command=/consul/consul-template -config "/consul/template/ha_template.hcl"
autorestart=true
redirect_stderr=true
priority=3
**dependencies=program:consul**

[program:ha_config]
command=/consul/consul-template -config "/consul/template/ha_config.hcl"
autorestart=true
redirect_stderr=true
priority=4
**dependencies=program:consul**


[program:haproxy]
command=haproxy -f /etc/haproxy/haproxy.cfg -p /var/run/haproxy.pid -W
stopsignal=SIGUSR1
stopwaitsecs=10
autorestart=true
redirect_stderr=true
priority=999
**dependencies=program:ha_template, program:ha_config**

In that's example if consul was not start, don't need run another programs. Before consul start configuration script and create config.

@mnaberez
Copy link
Member

start delay - many times i need start some prepare scripts before runing main process.

Duplicate of #487

start dependencies - i want start main process only if another program was started

Duplicate of #122

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants