[Twisted-Python] Service.stopService

Andrew Bennetts andrew-twisted at puzzling.org
Fri May 21 09:55:34 EDT 2004


On Fri, May 21, 2004 at 02:34:41PM +0100, Bill la Forge wrote:
>    I have a very simple application--I'm testing service start and stop.
>    Woops--stopService is never called. Why?
>     
[...]
>    And here's my twistd script:
>     
>    from twisted.application import service
>    import simpleService
>    application = service.Application('testService', uid=1, gid=1)
>    serviceCollection=service.IServiceCollection(application)
>    w = simpleService.SimpleService()
>    s.setServiceParent(serviceCollection)

This doesn't look like your real twistd script -- 's' isn't defined.  Did
your copy-and-paste screw something up?

-Andrew.





More information about the Twisted-Python mailing list