[ZCM] [ZC] 1533/ 1 Request "Windows Service tweaks"

Collector: Zope Bugs, Features, and Patches ... zope-coders-admin at zope.org
Wed Oct 13 01:11:40 EDT 2004


Issue #1533 Update (Request) "Windows Service tweaks"
 Status Pending, Zope/feature+solution medium
To followup, visit:
  http://collector.zope.org/Zope/1533

==============================================================
= Request - Entry #1 by mhammond on Oct 13, 2004 1:11 am


Uploaded:  "services.patch"
 - http://collector.zope.org/Zope/1533/services.patch/view
Attached is a patch for more reliable Windows services, as discussed on zope-dev some time ago:

* The Zope child process output is collected reliably.  If the process dies with a non-zero exit code, the last ~2k of child output is written to the Windows event log.

* Requesting a shutdown during the back-off period is reflected immediately rather than waiting for the timeout

* Stopping the service no longer terminates the child process - it arranges for graceful shutdown.  It still terminates if the child refuses

* Changes to the service skeleton to support the new service code.

As agreed on zope-dev, there is no change to the backoff strategy - if Zope has a fatal startup error, it will continue to restart as previously.

Before starting the patch, I copied the trunk's service.py as it was in better starting shape.  This means the patched file is also suitable for 2.8 (but the patch probably won't apply there)

This is likely to be the last of this round of patches, and depends on most of my recent previous ones.  Notably the 'clean shutdown' patch, and 'WinBuilders' as this requires pywin32-203 or later.
==============================================================



More information about the Zope-Collector-Monitor mailing list