One option is to use a template engine to generate your supervisord config.
 We use Perl Template Toolkit.

Roger

On Fri, Aug 20, 2010 at 3:08 PM, Joseph Kondel <j...@joekondel.com> wrote:

> Basically I want to run supervisor and have it administer celery workers on
> a number of servers. The issue is that unless you give your celery workers
> unique names it gets interesting trying to control them remotely. Ideally
> I'd like to append the hostname to the process_name parameter in the config.
> I tried setting an env variable but that obviously didn't work. Short of
> either tweaking supervisors or celery's source, is there a known way to do
> this kind of thing?
>
> here's my current config in any case:
>
> [program:celeryd]
> command=/Users/joe/projects/platform/manage.py celeryd
> --settings=settings.local_prod -l info
> --hostname=%(program_name)s_%(process_num)03d
> process_name=%(program_name)s_%(process_num)03d
> numprocs=3
>
>
> Thanks!
> -j
> _______________________________________________
> Supervisor-users mailing list
> Supervisor-users@lists.supervisord.org
> http://lists.supervisord.org/mailman/listinfo/supervisor-users
>
>
_______________________________________________
Supervisor-users mailing list
Supervisor-users@lists.supervisord.org
http://lists.supervisord.org/mailman/listinfo/supervisor-users

Reply via email to