<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&#39;ll point out that this isn&#39;t a supported mode of<br>
running Twisted (which I&#39;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&#39;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&#39;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&#39;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&#39;ll need to do that.  It probably won&#39;t even break child process<br>
support (although other aspects of Windows services probably will).<br>
Notice it&#39;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&#39;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&#39;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&#39;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>