[Zope3-dev] Re: Third party application configuration
Tres Seaver
tseaver at zope.com
Mon May 31 11:40:37 EDT 2004
Garrett Smith wrote:
> Chris Withers wrote:
>
>> Garrett Smith wrote:
>>
>>> Might it be possible to define a general purpose abstract type to
>>> support arbitrary extentions in zope.conf?
>>
>>
>>
>> What you want is possible in ZConfig, I managed to get it working in
>> another Python framework-ish application I'm building using twisted,
>> btu I don't remember how :-S
>>
>> I think an abstract type was indeed how I did it, but I can't remember...
>
>
> Yes, I was able to get this working by adding an abstract 'extension'
> type in Zope's schema.xml. This lets you add %import foo.bar to
> zope.conf and use whatever you want.
>
> I decided not to go this route because I'm not comfortable/knowledgable
> with/of Zope's shutdown procedures, and this is a prerequisite to
> running subprocesses that start when Zope starts.
>
> I think the driving use case for this is to launch another process, like
> a database, when Zope starts. For this to make sense the monitor thread
> needs a reliable shutdown message, which I don't believe is happening.
>
> Probably a topic for revisiting down the road.
You might check out Chris McDonough's 'supervisord':
http://www.plope.com/software/supervisor
which is aimed at putting a single "ctl" monitor in front of multiple
daemons.
Tres.
--
===============================================================
Tres Seaver tseaver at zope.com
Zope Corporation "Zope Dealers" http://www.zope.com
More information about the Zope3-dev
mailing list