blob: eba253074a7ffea8599ba28b65378522cf837398 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
# Service composition for bitmask-core.
# Run as: twistd -n -y bitmaskd.tac
#
from twisted.application import service
from twisted.python.log import ILogObserver, FileLogObserver
from leap.bitmask.core.service import BitmaskBackend
from leap.bitmask.core.logs import loggerFactory
logger = loggerFactory()
bb = BitmaskBackend()
application = service.Application("bitmaskd")
application.setComponent(ILogObserver, FileLogObserver(logger).emit)
bb.setServiceParent(application)
|