fraca7 wrote:
>
> Make sure it doesn't output anything to stdout or stderr, I've run into
> problems with that. I always include this kind of code in NT services:
>
> class Devnull:
> def write(self, bf):
> pass
> def close(self):
> pass
> def flush(self):
>
JackPhil a écrit :
> the problem is i can run the service in debug mode, and it seems works
> fine(i can connect the server with browser), but when i start the
> service in the services control panel, i can't connect the server, the
> server seems not start, and i can't stop the service.
Make sur
i code a very simple web server with python, and i want it should run
as service on WindowsXP.
the problem is i can run the service in debug mode, and it seems works
fine(i can connect the server with browser), but when i start the
service in the services control panel, i can't connect the server,
On 6/24/05, Austin <[EMAIL PROTECTED]> wrote:
> def __init__(self,args):
> win32serviceutil.ServiceFramework.__init__(self,args)
> self.hWaitStop = win32event.CreateEvent(None, 0, 0, None)
> self.check = 1
Change last two lines to
self.check = 1
self.hWaitStop
class HelloService(win32serviceutil.ServiceFramework):
_svc_name_ = "HelloService"
_svc_display_name_ = "Hello Service"
def __init__(self,args):
win32serviceutil.ServiceFramework.__init__(self,args)
self.hWaitStop = win32event.CreateEvent(None, 0, 0, None)
self.c