On Mon, Mar 15, 2010 at 09:30:05AM -0500, Mikhail Terekhov wrote:
> On Sun, Mar 14, 2010 at 1:44 AM, Glyph Lefkowitz
> wrote:
> >
> > On Mar 11, 2010, at 3:05 PM, exar...@twistedmatrix.com wrote:
> >
> > If you notice anything broken about the website now, please point it
> > out.
> >
> > Also, th
from twisted.application import service,internet
from nfdmessenger import ServerContextFactory
from twisted.internet import ssl, reactor
def get_service():
serverContext = ServerContextFactory()
return internet.SSLServer(2000, serverContext,serverContext)
application=service.Application
Ok the below works:
from twisted.application import service,internet
from nfdmessenger import ServerContextFactory
from twisted.internet import ssl, reactor
def get_service():
serverContext = ServerContextFactory()
return internet.SSLServer(2000, serverContext)
application=service.Appl
Hello,
twistd -r epoll -y ./nfddaemon.tac
The below is the .tac file:
from twisted.application import service,internet
from nfdmessenger import ServerContextFactory
from twisted.internet import ssl, reactor
def get_service():
serverContext = ServerContextFactory()
return reactor.list
On Mon, Mar 15, 2010 at 6:03 PM, gary clark wrote:
> Yeh I have to install them and create a setup.py to find the path.
You only need to set your PYTHONPATH environment variable.
e.g.
$ export PYTHONPATH=/path/to/dir/containing/code
--
Reza Lotun
mobile: +44 (0)7521 310 763
email: rlo...@gma
Yeh I have to install them and create a setup.py to find the path.
--- On Mon, 3/15/10, gary clark wrote:
> From: gary clark
> Subject: Re: [Twisted-Python] Creating a daemon from my application
> To: "Twisted general discussion"
> Date: Monday, March 15, 2010, 12:19 PM
> Hello,
>
> I compact
Hello,
I compacted the server code initialization into the ServerContextFactory:
from nfdmessenger import ServerContextFactory
from twisted.internet import ssl, reactor
if __name__ == '__main__':
serverContext = ServerContextFactory()
reactor.listenSSL(2000, serverContext, serverConte
Thanks Reza I wil give it a crack.
Much appreciated,
Garyc
--- On Mon, 3/15/10, Reza Lotun wrote:
> From: Reza Lotun
> Subject: Re: [Twisted-Python] Creating a daemon from my application
> To: "Twisted general discussion"
> Date: Monday, March 15, 2010, 10:35 AM
> Hi,
>
> > I want to create
Hi,
> I want to create a twisted daemon from my application: ...
You want to use twistd. See
http://twistedmatrix.com/documents/current/core/howto/basics.html#auto1
The process is roughly:
1) create a myapp.tac file which essentially loads in your server and
wraps it in an application
2) run so
Hello,
I want to create a twisted daemon from my application:
if __name__ == '__main__':
import nfdprocess, sys
log.startLogging(sys.stdout)
serverContext = ServerContextFactory()
serverContext.protocol = nfdprocess.HandlePacket
port =int(sys.argv[1])
checkT = checkTables(
On Mon, Mar 15, 2010 at 06:32:23PM +0800, Peter Cai wrote:
> Someone turn off the server by cutting power of the server.
> When the machine is power on, I found my twisted application could not start
> and emit the following error.
>
> Another twistd server is running, PID 3398
>
> This could eit
Someone turn off the server by cutting power of the server.
When the machine is power on, I found my twisted application could not start
and emit the following error.
Another twistd server is running, PID 3398
This could either be a previously started instance of your application or a
different a
12 matches
Mail list logo