XMLRPC Solution Code

Frank Millman frank at chagford.com
Tue Jul 18 03:14:50 EDT 2006


Steve Holden wrote:
> dylpkls91 wrote:
> >
> > The hard part now is getting the server code to run as a Windows
> > service- argh!!!
> > I can get it installed and started using modified code from:
> > http://www.schooltool.org/products/schooltool-calendar/documentation/how-to/running-as-a-windows-service/schooltool-service.py/view
> >
> > but for some reason when the server is a service the client refuses to
> > connect properly!
> > Grrr... anybody know why?
> >
> Because there are specific requirements for Windows services, that your
> program isn't comlpying with.
>
>
> I'm afraid you'll need to Google for "python windows service" or
> similar: in essence the main thing the service has to do (besides serve)
> is ensure a continuous flow of messages through the system. It's ugly,
> but people have done it before.
>

I use something called 'srvany' -
   http://support.microsoft.com/kb/q137890/

I have a socket server program, written in pure Python, which I need to
run as a service. 'srvany' enables me to do this without using any of
the Win32 extensions or other complications.

I have not run it in a heavy-duty environment so I don't know if there
are any problems with it. I have it set up on my Windows 2003 Server,
and after a restart, my server program is automatically started as a
service and any client can connect straight away.

Frank Millman




More information about the Python-list mailing list