<DIV>I have a very simple application--I'm testing service start and stop.</DIV>
<DIV>Woops--stopService is never called. Why?</DIV>
<DIV>&nbsp;</DIV>
<DIV>Here's my simpleService.py:</DIV>
<DIV>&nbsp;</DIV>
<DIV>from twisted.application import&nbsp;service</DIV>
<DIV>class SimpleService(service.Service):<BR>&nbsp;&nbsp;&nbsp; def startService(self):<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; service.Service.startService(self)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; print '***start'<BR>&nbsp;&nbsp;&nbsp; def stopService(self):<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; service.Service.stopService(self)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; print '***stop'<BR></DIV>
<DIV>And here's my twistd script:</DIV>
<DIV>&nbsp;</DIV>
<DIV>from twisted.application import&nbsp;service<BR>import simpleService</DIV>
<DIV>application = service.Application('testService', uid=1, gid=1)<BR>serviceCollection=service.IServiceCollection(application)<BR>w&nbsp;= simpleService.SimpleService()<BR>s.setServiceParent(serviceCollection)<BR></DIV>
<DIV>It logs ***start, just fine. But never ***stop!</DIV>
<DIV>&nbsp;</DIV>
<DIV>Is something broken? Or should I be using addSystemEventTrigger???</DIV><BR><BR>Bill la Forge<br>http://www.geocities.com/laforge49/<p><font face=arial size=-1>
<a href="http://in.rd.yahoo.com/specials/mailtg/*http://yahoo.shaadi.com/india-matrimony/" target="_blank">
<b>Yahoo! India Matrimony</a>:</b> Find your partner 
<a href="http://in.rd.yahoo.com/specials/mailtg2/*http://yahoo.shaadi.com/india-matrimony/community.php" target="_blank">online</a>.</font>