[Supervisor-users] Running a program located relative to included config?
Chris McDonough
chrism at plope.com
Fri Oct 16 12:30:39 EDT 2009
Phillip Oldham wrote:
> I have a config file located at /etc/supervisord.conf inside will be a
> number of [include] sections which include various files containing
> [program] and [fcgi-program] sections. These include files are being
> kept with their relevant projects, and start "programs" (usually python
> scripts) that are local to them, eg:
>
> # ls /var/www/myproject
> supervisord.conf wsgi.py
> # cat /var/www/myproject/supervisord.conf
> [program:myproject-wsgi]
> program=wsgi.py
>
> This doesn't seem to be firing up the programs as expected; I'm assuming
> its because once the file is included supervisor is looking for the
> wsgi.py file in /etc.
>
> Is there any way I can push the full path into the include file without
> manually typing it? Maybe something like:
>
> program=%(directory)s/wsgi.py
%(here)s will get you the location of the original config file, IIRC.
- C
>
> ?
> _______________________________________________
> Supervisor-users mailing list
> Supervisor-users at lists.supervisord.org
> http://lists.supervisord.org/mailman/listinfo/supervisor-users
>
More information about the Supervisor-users
mailing list