[Supervisor-users] Running a program located relative to included config?
Phillip Oldham
phill at activityhq.com
Fri Oct 16 06:32:29 EDT 2009
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
?
More information about the Supervisor-users
mailing list