<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">To start off with, I'll point out that this isn't a supported mode of<br>
running Twisted (which I'm sure you noticed already :).<br>
<br>
This feature has been requested several times and worked on by a couple<br>
people, but not quite to the point of completion.<br>
<br>
Here's a related ticket:<br>
<br>
<a href="http://twistedmatrix.com/trac/ticket/4073" target="_blank">http://twistedmatrix.com/trac/ticket/4073</a><br>
<br>
There's also some more code in the sandbox:<br>
<br>
<a href="http://twistedmatrix.com/trac/browser/sandbox/moonfallen" target="_blank">http://twistedmatrix.com/trac/browser/sandbox/moonfallen</a><br>
<br>
BuildBot also has some code, though I'm not exactly sure where it is.<br>
It would be really great for someone to actually complete and generalize<br>
one or more of these initial attempts so that Windows service<br>
integration could be a real, working feature. :)<br>
<div><div class="h5"><br><br>
</div></div>Yes, you'll need to do that. It probably won't even break child process<br>
support (although other aspects of Windows services probably will).<br>
Notice it's failing on installing a SIGINT handler - ie, a Control-C<br>
handler. Since you want the thing to run as a service, you probably<br>
aren't very interested in having Control-C do anything.<br>
<br>
Jean-Paul<br>
<div class="im"><br></div></blockquote><div>Thanks for the pointers.</div><div><br></div><div>Some of the code seems pretty ancient and for setting up the service I think the win32com stuff from Mark Hammond seems to have all covered.</div>
<div><br></div><div>I have started to look around twisted to see where I can stop the signal handlers being installed.. I have landed in postApplication where startReactor is called, but I have yet to work out how I can set installSignalHandlers=False.</div>
<div><br></div><div>Am I right in assuming this is where I should be looking.</div><div><br></div><div>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 signals.</div>
<div><br></div><div>Thanks for the pointers</div><div><br></div><div>John Aherne</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im"></div>
_______________________________________________<br>
Twisted-Python mailing list<br>
<a href="mailto:Twisted-Python@twistedmatrix.com">Twisted-Python@twistedmatrix.com</a><br>
<a href="http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python" target="_blank">http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><b>John Aherne</b><div><b><br></b><div><b><img src="http://www.rocs.co.uk/Images/rocs_logo_sig.gif"><br></b></div><div><b><br></b></div><div><div><b><a href="http://www.rocs.co.uk" target="_blank">www.rocs.co.uk</a><br>
</b></div></div></div><div>020 7223 7567</div><br>