Log message for revision 30868:
  Port from 2.7 branch.
  
  Shut down cleanly when Windows is shutting down.
  

Changed:
  U   Zope/branches/Zope-2_8-branch/lib/python/nt_svcutils/service.py

-=-
Modified: Zope/branches/Zope-2_8-branch/lib/python/nt_svcutils/service.py
===================================================================
--- Zope/branches/Zope-2_8-branch/lib/python/nt_svcutils/service.py     
2005-06-20 19:52:19 UTC (rev 30867)
+++ Zope/branches/Zope-2_8-branch/lib/python/nt_svcutils/service.py     
2005-06-20 20:46:59 UTC (rev 30868)
@@ -85,6 +85,11 @@
         # Set the stop event - the main loop takes care of termination.
         win32event.SetEvent(self.hWaitStop)
 
+    # SvcStop only gets triggered when the user explictly stops (or restarts)
+    # the service.  To shut the service down cleanly when Windows is shutting
+    # down, we also need to hook SvcShutdown.
+    SvcShutdown = SvcStop
+
     def onStop(self):
         # A hook for subclasses to override
         pass

_______________________________________________
Zope-Checkins maillist  -  Zope-Checkins@zope.org
http://mail.zope.org/mailman/listinfo/zope-checkins

Reply via email to