[Zope-Checkins] CVS: Zope - z2.py:1.89
Toby Dickenson
tdickenson@geminidataloggers.com
Wed, 13 Nov 2002 05:39:08 -0500
Update of /cvs-repository/Zope
In directory cvs.zope.org:/tmp/cvs-serv13026
Modified Files:
z2.py
Log Message:
Merged remaining changes from toby-clean-shutdown-branch. This resolves the overnight problem where storages were not closed if Zope is shut down using the ZMI, and the long-standing problem where storages were closed too soon when shut down using a signal
=== Zope/z2.py 1.88 => 1.89 ===
--- Zope/z2.py:1.88 Mon Nov 4 08:33:46 2002
+++ Zope/z2.py Wed Nov 13 05:38:38 2002
@@ -909,5 +909,11 @@
import Lifetime
Lifetime.loop()
code = sys.ZServerExitCode
+
+zLOG.LOG('z2', zLOG.INFO, "Closing all open ZODB databases")
+import Globals
+for db in Globals.opened:
+ db.close()
+
zLOG.LOG("z2", zLOG.INFO, 'Exiting with code %d' % code )
sys.exit(code)