[Zope-Checkins] CVS: Zope/lib/python/nt_svcutils -
service.py:1.1.2.6
Tim Peters
tim.one at comcast.net
Mon Jun 20 16:43:38 EDT 2005
Update of /cvs-repository/Zope/lib/python/nt_svcutils
In directory cvs.zope.org:/tmp/cvs-serv5742/lib/python/nt_svcutils
Modified Files:
Tag: Zope-2_7-branch
service.py
Log Message:
Shut down cleanly when Windows is shutting down.
=== Zope/lib/python/nt_svcutils/service.py 1.1.2.5 => 1.1.2.6 ===
--- Zope/lib/python/nt_svcutils/service.py:1.1.2.5 Wed Jun 8 11:33:21 2005
+++ Zope/lib/python/nt_svcutils/service.py Mon Jun 20 16:43:37 2005
@@ -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
More information about the Zope-Checkins
mailing list