buildbot.tac 725 B

1234567891011121314151617181920212223
  1. from twisted.application import service
  2. from buildbot.master import BuildMaster
  3. basedir = r'/var/buildbot'
  4. configfile = r'master.cfg'
  5. rotateLength = 10000000
  6. maxRotatedFiles = 100
  7. umask = 022
  8. application = service.Application('buildmaster')
  9. try:
  10. from twisted.python.logfile import LogFile
  11. from twisted.python.log import ILogObserver, FileLogObserver
  12. logfile = LogFile.fromFullPath("twistd.log", rotateLength=rotateLength,
  13. maxRotatedFiles=maxRotatedFiles)
  14. application.setComponent(ILogObserver, FileLogObserver(logfile).emit)
  15. except ImportError:
  16. # probably not yet twisted 8.2.0 and beyond, can't set log yet
  17. pass
  18. BuildMaster(basedir, configfile).setServiceParent(application)