[Zope-dev] Error removing NT Service

Adrian Hungate adrian@haqa.co.uk
Sun, 10 Mar 2002 22:29:13 -0000


Two points about deleting services (Well one really, just looked at from two
angles):
1) Services must have fully stopped before you delete them, or they get
marked for deletion on the next reboot (Good, solid server software:
expecting frequent reboots!)
2) The service must have had all the SCM handles closed otherwise the same
happens

What is probably happening is that the SCM handle from the service shutdown
has been deleted, but python or something still has a reference to it that
has not been garbage collected yet.

Just a guess. Without seeing your code, it's hard to know for certain.

Adrian...

--
The difficulty of tactical maneuvering consists in turning the devious into
the direct, and misfortune into gain.
- Sun Tzu


----- Original Message -----
From: "Dean@work (E-mail)" <dean.houghton@wideawake.co.uk>
To: <zope-dev@zope.org>
Sent: Friday, March 08, 2002 2:39 PM
Subject: [Zope-dev] Error removing NT Service


> Hi
>
> I have an application built with Zope which can install, control and
remove
> NT services. The actual code is in an external python script.  The
services
> can be installed and controlled but if you try and remove the service it
get
> marked as 'disabled' and can not be reinstalled or remove manually
(without
> using the registry).  However if Zope is restarted the service is then
> removed.
>
> Does anyone have any ideas about resolving this problem ??
>
> thanks in advance
>
> Dean Houghton
>
>
>
>
>
> _______________________________________________
> Zope-Dev maillist  -  Zope-Dev@zope.org
> http://lists.zope.org/mailman/listinfo/zope-dev
> **  No cross posts or HTML encoding!  **
> (Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope )
>