2
from twisted.application import service
3
from buildbot.master import BuildMaster
5
basedir = r'/var/buildbot'
6
configfile = r'master.cfg'
7
rotateLength = 10000000
11
application = service.Application('buildmaster')
13
from twisted.python.logfile import LogFile
14
from twisted.python.log import ILogObserver, FileLogObserver
15
logfile = LogFile.fromFullPath("twistd.log", rotateLength=rotateLength,
16
maxRotatedFiles=maxRotatedFiles)
17
application.setComponent(ILogObserver, FileLogObserver(logfile).emit)
19
# probably not yet twisted 8.2.0 and beyond, can't set log yet
21
BuildMaster(basedir, configfile).setServiceParent(application)