[Zope-Coders] Re: runzope - but no stopzope in Zope 2.7?

Chris McDonough chrism at plope.com
Thu Nov 20 10:23:03 EST 2003


It wouldn't be able to open the filestorage and pack it directly unless
ZEO was used; it would need to go through a server to do it... this
could be a bit tricky because zopectl itself doesn't really know much
about the configuration (e.g. what ports Zope is actually listening on,
what the admin username and password are, etc).  I suppose zopectl could
import ZConfig and read the config itself, though.  This is a bit
involved.

FWIW, a while ago I set up a signal handler for pack which seemed like a
good idea at the time.  But when it was invoked it coopted the asyncore
mainloop, essentially freezing the whole Zope server for the time it
took to pack.  So we took it out. 

I wonder if we should create a Zope 'admin' server that listens on a
UNIX domain socket for this kind of thing.

On Thu, 2003-11-20 at 10:13, Paul Winkler wrote:
> On Thu, Nov 20, 2003 at 05:52:34AM -0500, Chris McDonough wrote:
> > > I never knew about that!  What would you think about adding a 'pack' 
> > > command?
> > 
> > +1.  That'd be pretty cool.
> 
> +1. It would remove the need to think about how best to authorize
> a scheduled pack (e.g. uname / password in cron script, dedicated user
> in zope who can't do anything else)




More information about the Zope-Coders mailing list