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

extend expansions from user defined environments in the config #1170

Closed
Ivlyth opened this issue Nov 8, 2018 · 2 comments · Fixed by #1227
Closed

extend expansions from user defined environments in the config #1170

Ivlyth opened this issue Nov 8, 2018 · 2 comments · Fixed by #1227

Comments

@Ivlyth
Copy link
Contributor

Ivlyth commented Nov 8, 2018

currently supervisor support expand options such as command, name, stdout_logfile etc from environment variables, but this environment variables only contains the environment that the moment supervisord start. which i defined in the supervisord section or [program:x] section does not take effect.

@mnaberez
Copy link
Member

Reproduce Case 1

$ supervisord --version
4.0.1

$ cat supervisord.conf 
[supervisord]
environment = FOO="bar"

[program:foo]
command = %(ENV_FOO)s

$ supervisord -n -c supervisord.conf 
Error: Format string '%(ENV_FOO)s' for 'program:foo.command' contains names 
('ENV_FOO') which cannot be expanded. Available names: ...

Reproduce Case 2

$ supervisord --version
4.0.1

$ cat supervisord.conf 
[supervisord]

[program:foo]
command = %(ENV_FOO)s
environment = FOO="bar"

$ supervisord -n -c supervisord.conf 
Error: Format string '%(ENV_FOO)s' for 'program:foo.command' contains names 
('ENV_FOO') which cannot be expanded. Available names: ...

@wm842
Copy link

wm842 commented Oct 10, 2020

Any update?

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

Successfully merging a pull request may close this issue.

3 participants