[Zope] how do I manage a graceful shutdown?

Jamie Heilman jamie@audible.transient.net
Wed, 19 Feb 2003 23:52:31 -0800


Magnus Heino wrote:
> 
> > Is there a "hook" that I can include in my product to make sure my shutdown
> > stuff is called whenever Zope is shutting down or restarting?
> 
> Zope/lib/python/Signals/Signals.py

Signal handlers won't be called during a shutdown from the ZMI.
There is http://dev.zope.org/Wikis/DevSite/Proposals/CleanShutdown
which is supposedly in CVS and has been vetted, but its not in 2.6.1,
and I guess, even if it was, it doesn't look like it offers much in the
way of hooks for products to play with.

-- 
Jamie Heilman                   http://audible.transient.net/~jamie/
"You came all this way, without saying squat, and now you're trying
 to tell me a '56 Chevy can beat a '47 Buick in a dead quarter mile?
 I liked you better when you weren't saying squat kid."	-Buddy