[Supervisor-users] Running a program located relative to included config?
Phillip Oldham
phill at activityhq.com
Wed Oct 21 06:40:16 EDT 2009
Chris McDonough wrote:
> %(here)s will get you the location of the original config file, IIRC.
Thanks, but no luck. To further illustrate what I'm trying to do:
# cat /etc/supervisord.conf
...
[include]
files = /var/www/*/supervisord.conf
# ls /var/www/mysite
wsgi.py supervisord.conf
# cat /var/www/mysite/supervisord.conf
[program:mysite_py]
directory=%(here)s
command=python wsgi.py --port 9090
Fails with a message that python can't find wsgi.py. I'm assuming its
because it's looking in the same place as the main supervisord.conf, eg:
/etc
Is what I'm looking to achieve possible?
More information about the Supervisor-users
mailing list