~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to daemons/buildd-manager.tac

  • Committer: Henning Eggers
  • Date: 2010-07-27 10:54:18 UTC
  • mto: This revision was merged to the branch mainline in revision 11244.
  • Revision ID: henning@canonical.com-20100727105418-zmdf25w6zaswup0e
Use logile name from command line options.

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
# Use with "twistd2.4 -y <file.tac>", e.g. "twistd -noy server.tac"
6
6
 
7
7
from twisted.application import service
 
8
from twisted.scripts.twistd import ServerOptions
8
9
from twisted.web import server
9
10
 
10
11
from lp.buildmaster.manager import BuilddManager
17
18
execute_zcml_for_scripts()
18
19
initZopeless(dbuser=config.builddmaster.dbuser)
19
20
 
 
21
options = ServerOptions()
 
22
options.parseOptions()
 
23
 
20
24
application = service.Application('BuilddManager')
21
25
application.addComponent(
22
 
    RotatableFileLogObserver('buildd-manager.log'), ignoreClass=1)
 
26
    RotatableFileLogObserver(options.get('logfile')), ignoreClass=1)
23
27
 
24
28
# Service that announces when the daemon is ready.
25
29
tachandler.ReadyService().setServiceParent(application)