windows service problem

2005-10-03 Thread JackPhil
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, the
server seems not start, and i can't stop the service.

any advice?

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: windows service problem

2005-10-03 Thread JackPhil

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):
>  pass
>
> sys.stdout = sys.stderr = Devnull()

Thanks for your instructions. It's resolved my problem.

-- 
http://mail.python.org/mailman/listinfo/python-list


Where is the document of python-mode.el

2005-09-13 Thread JackPhil
I searched in the python-mode.el, sf.net, python.org, and found nothing

Best regards
-- 
http://mail.python.org/mailman/listinfo/python-list