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-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] Silly txoauth with Twisted Client Question

2012-10-24 Thread Laurens Van Houtven
txoauth is something I started, then I realized I really hate oauth, then it was "adopted" by simplegeo who afaik proceeded to not do anything with it, and then I readopted it on github. There's not much work on it, but what's there has a complete test suite. ISTR glyph at one point describing an

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 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 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 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 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
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] a possible solution for ticket 5562

2012-10-24 Thread gelin yan
On Mon, Oct 22, 2012 at 12:06 PM, Glyph wrote: > > On Oct 20, 2012, at 7:56 PM, gelin yan wrote: > > "A pending operation is indicated when the function that started the > operation returns *FALSE*, and the > *GetLastError*

Re: [Twisted-Python] a possible solution for ticket 5562

2012-10-24 Thread Glyph
On Oct 24, 2012, at 8:48 PM, gelin yan wrote: > I attach a modified abstract.py here. You may put it in > Path\twisted\internet\iocpreactor > and give it a try. Hi Gelin, Can you generate and attach a patch to the ticket, as per the instructions on

Re: [Twisted-Python] a possible solution for ticket 5562

2012-10-24 Thread gelin yan
On Thu, Oct 25, 2012 at 1:03 PM, Glyph wrote: > > On Oct 24, 2012, at 8:48 PM, gelin yan wrote: > > I attach a modified abstract.py here. You may put it in > Path\twisted\internet\iocpreactor > and give it a try. > > > Hi Gelin, > > Can you generate and attach a patch to the ticket, as per