Chris McDonough wrote:
> Erik Myllymaki wrote:
>> Erik Myllymaki wrote:
>>> I am just trying out supervisor for the first time.
>>>
>>> I have followed a howto by Carlos de la Guardia here:
>>>
>>> http://blog.delaguardia.com.mx/index.php?op=ViewArticle&articleId=106&blogId=1
>>>
>>>
>>>
>>> to start zeo, zope and varnish for a plone install.
>>>
>>> It seems to work well, except it always reports that varnish has
>>> exited even though varnish is up and running:
>> Answering my own question...
>>
>> After reading the Manual a bit more, iI forced varnishd to run in the
>> foreground and now things are working as expected.
>
> Great. Can you share your program stanza?
>
> - C
>
Sure. the "-F" option starts varnishd in the foreground:
[program:varnish]
command = %(here)s/../bin/varnish-instance
priority = 60
redirect_stderr = true
%(here)s/../bin/varnish-instance is a shell script created by the
buildout recipe plone.recipe.varnish:
#!/bin/sh
exec /opt/intranet/bin/varnishd \
-F -f "/opt/intranet/parts/varnish-instance/varnish.vcl" \
-P "/opt/intranet/parts/varnish-instance/varnish.pid" \
-a 192.168.2.6:8282 \
-s file,"/opt/intranet/parts/varnish-instance/storage",512M \
"$@"
_______________________________________________
Supervisor-users mailing list
[email protected]
http://lists.supervisord.org/mailman/listinfo/supervisor-users