Re: Stopping Windows Service



On Wed, 2006-03-01 at 12:41 -0800, D wrote:
I have a simple file server utility that I wish to configure as a
Windows service - using the examples of the Python Win32 book, I
configured a class for the service, along with the main class functions
__init__, SvcStop, and SvcDoRun (which contains my server code). After
registering the service, I am able to start it with no problems.
However, it never stops correctly (net stop returns "service could not
be stopped") and service is left in a Stopping state. My gut tells me
there's something additional I need to include in the SvcDoRun function
in order to have it shutdown gracefully, but I'm not sure what. Also,
if that is the case, where should I place the statements within the
function (i.e. right after the listen() statement?)? Thanks as
always..
At the risk of sounding like a geek, first problem I see is WIndows:)
Sorry couldn't help that one:) Seriously though, I would suggest that it
sounds like something is not letting the process go, which would be par
for the windows course. If you will post the snippet of code, I'm sure
we could help you a little more specifically.

.



Relevant Pages

  • Stopping Windows Service
    ... I have a simple file server utility that I wish to configure as a ... Windows service - using the examples of the Python Win32 book, ... configured a class for the service, along with the main class functions ...
    (comp.lang.python)
  • Re: 1st Windows Service - how to register dll??
    ... you execute Project1.exe or you can add Project2.dll to your GAC (which is ... similar to registering an unmanaged assembly). ... If Project1.exe is a windows service and you want it to be controlled ... Please do not send email directly to this alias. ...
    (microsoft.public.dotnet.framework.component_services)
  • how to access wellknown singleton object within Windows service
    ... I have a wellknown singleton remotable object within a Windows service ... I tried creating a new HTTP channel and ... registering it, but I get "System.Runtime.Remoting.RemotingException: ... Prev by Date: ...
    (microsoft.public.dotnet.framework.remoting)
  • Re: channel http not registered with remoting services
    ... > uses remoting and the remote server runs as windows service in addition to ... > Siva. ... >> have yu created the instance of the channel before registering the ...
    (microsoft.public.dotnet.framework.remoting)