Re: [python-win32] HTTP Server as a Windows Service

2008-02-25 Thread Paul Moore
On 25/02/2008, Mark Hammond <[EMAIL PROTECTED]> 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(win

Re: [python-win32] HTTP Server as a Windows Service

2008-02-25 Thread Mark Hammond
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. Othe

Re: [python-win32] HTTP Server as a Windows Service

2008-02-25 Thread Paul Moore
On 22/02/2008, Larry Bates <[EMAIL PROTECTED]> wrote: > This seems to come up about every other week. The problem is that you > haven't > given your service a way to KNOW that you have sent a stop signal. Below is > a > skeleton of a correct SvcDoRun method: In fact, the code shown uses sel

Re: [python-win32] HTTP Server as a Windows Service

2008-02-22 Thread Larry Bates
Mike Smith wrote: > I've written the following script based on information I have found on > the web. The purpose of the script is to start an HTTP listener on the > machine it's running on that will give status on a particular process > running on that system that can be polled by an external