Skip to content

Expand arbitrary variables e.g. %(folder)s #138

@anuraguniyal

Description

@anuraguniyal

Python ConfigParser allows variables to expand e.g. I usually use

[program:groupsafe_celery]
site_folder=/home/src/app
src_folder=/home/src/app/src
command=%(src_folder)s/manage.py celeryd --loglevel=INFO -f %(site_folder)s/log/celeryd.log -B -s %(site_folder)s/log/celerybeat-schedule

Which is very convenient and reduces error, but supervisord has its ownconfig parser UnhosedConfigParse which is devied from RawConfigParser and hence doesn't support such expansion, giving error like
Error: Format string '%(src_folder)s' for 'directory' contains names which cannot be expanded

Am I missing something. is it possible in supervisord?, if not I think it should be added

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions