Question

I am very new to using Twisted. I have set up a protocol in a .py and it works perfectly. The thing is that currently to test it I have to ssh into my server and run it. I would like to have it running as a service/server so it is always serving my protocol. I read on the twisted site something about .tac files but I'm not sure how to tie that in with the protocol file I've written.

All I have is a simple socket based iPhone app that sends messages to the reactor and receives messages back.

I would like this to start up when the server boots. Much like an apache server works.

Thanks for your help.

Was it helpful?

Solution

Daemonization in twisted is achieved via the twistd shell command. I found this tutorial quite useful: Using the Twisted Application Framework

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top