1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
# Copyright 2004-2005 Canonical Ltd. All rights reserved.
# Twisted Application Configuration file.
# Use with "twistd2.3 -y <file.tac>", e.g. "twistd -noy server.tac"
from twisted.application import service, internet, strports
from twisted.web import server
from canonical.config import config
from canonical.launchpad.daemons import tachandler
from canonical.zeca import Zeca, KeyServer, LookUp
root = config.zeca.root
application = service.Application('Zeca')
zecaService = service.IServiceCollection(application)
# Service that announces when the daemon is ready
tachandler.ReadyService().setServiceParent(zecaService)
zeca = Zeca()
keyserver = KeyServer()
keyserver.putChild('lookup', LookUp(root))
zeca.putChild('pks', keyserver)
site = server.Site(zeca)
site.displayTracebacks = False
strports.service('11371', site).setServiceParent(zecaService)
|