windows service problem

fraca7 fraca7 at
Mon Oct 3 11:43:22 CEST 2005

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 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):
     def close(self):
     def flush(self):

sys.stdout = sys.stderr = Devnull()

More information about the Python-list mailing list