Where do I find a list of options available for zope.conf? I found a sample.conf in the zdaemon directory, but when using that gave me error msgs about 'runner' being an unknown type name. It's the only file I've seen which suggests how 'socket-name' can be set. -- John
John Poltorak wrote:
Where do I find a list of options available for zope.conf?
I found a sample.conf in the zdaemon directory, but when using that gave me error msgs about 'runner' being an unknown type name.
It's the only file I've seen which suggests how 'socket-name' can be set.
$ZOPE_HOME/lib/python/Zope/Startup/zopeschema.xml defines the schema for zope.conf. It doesn't (currently) allow the 'socket-name' variable to be set; you could try adding it (to the 'zoperunner' section), and see if things Just Work. If so, submit the diff as a patch to a collector issue: http://zope.org/Collectors/Zope Tres. -- =============================================================== Tres Seaver tseaver@zope.com Zope Corporation "Zope Dealers" http://www.zope.com
On Wed, Oct 20, 2004 at 05:30:06PM -0400, Tres Seaver wrote:
John Poltorak wrote:
Where do I find a list of options available for zope.conf?
I found a sample.conf in the zdaemon directory, but when using that gave me error msgs about 'runner' being an unknown type name.
It's the only file I've seen which suggests how 'socket-name' can be set.
$ZOPE_HOME/lib/python/Zope/Startup/zopeschema.xml defines the schema for zope.conf. It doesn't (currently) allow the 'socket-name' variable to be set; you could try adding it (to the 'zoperunner' section), and see if things Just Work.
It seems strange to me that a sample.conf is included which references socket-name in a 'runner' section. When I use this sample as my zope.conf zope flags 'runner' as unknown. If I change this to 'zoperunner' then socket-name is flagged as unknown. Is this file just redundant? Maybe it should be removed from the distribution... It makes me wonder whether the '-s' option for zdctl is operable. If so, then how do I get to set it when running zopectl?
Tres. -- =============================================================== Tres Seaver tseaver@zope.com Zope Corporation "Zope Dealers" http://www.zope.com
-- John
John Poltorak wrote:
On Wed, Oct 20, 2004 at 05:30:06PM -0400, Tres Seaver wrote:
John Poltorak wrote:
Where do I find a list of options available for zope.conf?
I found a sample.conf in the zdaemon directory, but when using that gave me error msgs about 'runner' being an unknown type name.
It's the only file I've seen which suggests how 'socket-name' can be set.
$ZOPE_HOME/lib/python/Zope/Startup/zopeschema.xml defines the schema for zope.conf. It doesn't (currently) allow the 'socket-name' variable to be set; you could try adding it (to the 'zoperunner' section), and see if things Just Work.
It seems strange to me that a sample.conf is included which references socket-name in a 'runner' section.
zdaemon can be used for running almost anything; I use it to make spread run as a manageable daemon for instance (spread is not even a Python application). The 'sample.conf' file is useful as a starting point for such uses.
When I use this sample as my zope.conf zope flags 'runner' as unknown. If I change this to 'zoperunner' then socket-name is flagged as unknown. Is this file just redundant? Maybe it should be removed from the distribution...
zope.conf is a single configuration file for both 'zdaemon' and for the Zope appserver; the 'zoperunner' section contains the bits used by zdaemon in this mode. Currently, 'zoperunner' does not allow adding the 'socket-name' parameter, which is why I suggested you might need to hack the zopeschema.xml file (not just the config file). You may also need to hack the 'handlers.py' or other code to ensure that the value gets used.
It makes me wonder whether the '-s' option for zdctl is operable. If so, then how do I get to set it when running zopectl?
It is *not* currently operable within zopectl. A workaround would be to run 'zdaemon' directly yourself, using a 'sample.conf'-derived config file; it would then need to launch zope passing the 'zope.conf' config file. The two config schemas are immiscible at the moment (at least until you attempt the patch I described). Tres. -- =============================================================== Tres Seaver tseaver@zope.com Zope Corporation "Zope Dealers" http://www.zope.com
participants (2)
-
John Poltorak -
Tres Seaver