Re: [Twisted-Python] Running twistd and tac files as Windows service

2012-10-24 Thread Phil Mayers
On 24/10/12 17:14, Michael Schlenker wrote: > this looks dubious, are you sure you can still react to ServiceManager Yes. > actions like 'Stop' or 'Query' this way, isn't this wait() blocking? AIUI, the "svc" methods are called from various threads? I didn't create this code; I cribbed it from

Re: [Twisted-Python] Running twistd and tac files as Windows service

2012-10-24 Thread Michael Schlenker
Am 24.10.2012 14:14, schrieb Phil Mayers: > n 24/10/12 12:33, Michael Schlenker wrote: >> Am 24.10.2012 11:01, schrieb Phil Mayers: >>> On 10/24/2012 08:43 AM, John Aherne wrote: >> >> But what you are talking about is the SetConsoleCtrlHandler function. >> http://docs.activestate.com/activepython/

Re: [Twisted-Python] Running twistd and tac files as Windows service

2012-10-24 Thread Phil Mayers
n 24/10/12 12:33, Michael Schlenker wrote: > Am 24.10.2012 11:01, schrieb Phil Mayers: >> On 10/24/2012 08:43 AM, John Aherne wrote: >> >>> I don't have much idea about signalhandlers but I assume the one I am >>> interested in here is to stop ControlC. The others might need to stay >>> on. I'm not

Re: [Twisted-Python] Running twistd and tac files as Windows service

2012-10-24 Thread Michael Schlenker
Am 24.10.2012 11:01, schrieb Phil Mayers: > On 10/24/2012 08:43 AM, John Aherne wrote: > >> I don't have much idea about signalhandlers but I assume the one I am >> interested in here is to stop ControlC. The others might need to stay >> on. I'm not too sure about that without knowing more about w

Re: [Twisted-Python] Running twistd and tac files as Windows service

2012-10-24 Thread Adi Roiban
On 23 October 2012 20:09, Tom Prince wrote: > As JP said, buildbot has some code for this at > https://github.com/buildbot/buildbot/blob/master/master/contrib/windows/buildbot_service.py > Just in case it might be of any help. I am using something based on this code: http://code.activestate.com/

Re: [Twisted-Python] Running twistd and tac files as Windows service

2012-10-24 Thread Phil Mayers
On 10/24/2012 08:43 AM, John Aherne wrote: > I don't have much idea about signalhandlers but I assume the one I am > interested in here is to stop ControlC. The others might need to stay > on. I'm not too sure about that without knowing more about windows > services and how they react to these sig

Re: [Twisted-Python] Running twistd and tac files as Windows service

2012-10-24 Thread John Aherne
On Tue, Oct 23, 2012 at 6:09 PM, Tom Prince wrote: > As JP said, buildbot has some code for this at > > https://github.com/buildbot/buildbot/blob/master/master/contrib/windows/buildbot_service.py > -- *John Aherne* * * * * * * *www.rocs.co.uk * 020 7223 7567 __

Re: [Twisted-Python] Running twistd and tac files as Windows service

2012-10-24 Thread John Aherne
> To start off with, I'll point out that this isn't a supported mode of > running Twisted (which I'm sure you noticed already :). > > This feature has been requested several times and worked on by a couple > people, but not quite to the point of completion. > > Here's a related ticket: > > http

Re: [Twisted-Python] Running twistd and tac files as Windows service

2012-10-23 Thread Tom Prince
As JP said, buildbot has some code for this at https://github.com/buildbot/buildbot/blob/master/master/contrib/windows/buildbot_service.py ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/

Re: [Twisted-Python] Running twistd and tac files as Windows service

2012-10-23 Thread exarkun
On 08:23 am, johnahe...@rocs.co.uk wrote: >I have been looking at running some twisted programs as a windows >service. > >So in the end I took a copy of twistd.py and adapted it to load my tac >file >and run it as a windows service. > >Of course the windows service will run it in a separate threa

[Twisted-Python] Running twistd and tac files as Windows service

2012-10-23 Thread John Aherne
I have been looking at running some twisted programs as a windows service. So in the end I took a copy of twistd.py and adapted it to load my tac file and run it as a windows service. Of course the windows service will run it in a separate thread. I now have it running on XP, 2003 Server Twisted