[python-win32] HTTP Server as a Windows Service

Paul Moore p.f.moore at gmail.com
Mon Feb 25 14:26:29 CET 2008


On 25/02/2008, Mark Hammond <mhammond at skippinet.com.au> wrote:
> I'm afraid I haven't followed this closely, but:
>
>
>  > The real problem here is that the OP hasn't notified the service
>  > control manager that it has stopped, once SvcDoRun completes. He needs
>  > a call to self.ReportServiceStatus(win32service.SERVICE_STOPPED)
>  > outside the while loop in SvcDoRun. Otherwise the status never gets
>  > set to "Stop", and remains at "Stopping" as he is seeing.
>
>
> The above *should* be incorrect (and actually is, best I can tell).

Apologies. I really should know better than to post without thinking.
I was going by my incorrect recollections of code I had written,
rather than checking.

Thanks, Mark, for correcting my error.

Sorry for the noise.
Paul.


More information about the python-win32 mailing list