<DIV>I have a very simple application--I'm testing service start and stop.</DIV>
<DIV>Woops--stopService is never called. Why?</DIV>
<DIV> </DIV>
<DIV>Here's my simpleService.py:</DIV>
<DIV> </DIV>
<DIV>from twisted.application import service</DIV>
<DIV>class SimpleService(service.Service):<BR> def startService(self):<BR> service.Service.startService(self)<BR> print '***start'<BR> def stopService(self):<BR> service.Service.stopService(self)<BR> print '***stop'<BR></DIV>
<DIV>And here's my twistd script:</DIV>
<DIV> </DIV>
<DIV>from twisted.application import service<BR>import simpleService</DIV>
<DIV>application = service.Application('testService', uid=1, gid=1)<BR>serviceCollection=service.IServiceCollection(application)<BR>w = simpleService.SimpleService()<BR>s.setServiceParent(serviceCollection)<BR></DIV>
<DIV>It logs ***start, just fine. But never ***stop!</DIV>
<DIV> </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>