8687.15.8
by Karl Fogel
Add the copyright header block to more files. |
1 |
# Copyright 2009 Canonical Ltd. This software is licensed under the
|
2 |
# GNU Affero General Public License version 3 (see the file LICENSE).
|
|
7813.2.1
by Celso Providelo
re-basing slave-scanner-ng changes. |
3 |
|
4 |
# Twisted Application Configuration file.
|
|
5 |
# Use with "twistd2.4 -y <file.tac>", e.g. "twistd -noy server.tac"
|
|
6 |
||
7 |
from twisted.application import service |
|
8 |
from twisted.web import server |
|
9 |
||
8426.7.4
by Julian Edwards
mop up some top level scripts with bad imports. |
10 |
from lp.buildmaster.manager import BuilddManager |
7813.2.11
by Celso Providelo
Operating in Zopeless mode and including better logging support. |
11 |
from canonical.config import config |
8486.7.1
by Celso Providelo
Fixing bug #380848 (buildd-manager circular imports, also testing if the TAC file starts and stops correctly). |
12 |
from canonical.launchpad.daemons import tachandler |
7813.2.1
by Celso Providelo
re-basing slave-scanner-ng changes. |
13 |
from canonical.launchpad.scripts import execute_zcml_for_scripts |
7813.2.11
by Celso Providelo
Operating in Zopeless mode and including better logging support. |
14 |
from canonical.lp import initZopeless |
7813.2.1
by Celso Providelo
re-basing slave-scanner-ng changes. |
15 |
|
16 |
execute_zcml_for_scripts() |
|
7813.2.11
by Celso Providelo
Operating in Zopeless mode and including better logging support. |
17 |
initZopeless(dbuser=config.builddmaster.dbuser) |
7813.2.1
by Celso Providelo
re-basing slave-scanner-ng changes. |
18 |
|
19 |
application = service.Application('BuilddManager') |
|
8486.7.1
by Celso Providelo
Fixing bug #380848 (buildd-manager circular imports, also testing if the TAC file starts and stops correctly). |
20 |
|
21 |
# Service that announces when the daemon is ready.
|
|
22 |
tachandler.ReadyService().setServiceParent(application) |
|
23 |
||
24 |
# Service for scanning buildd slaves.
|
|
7813.2.1
by Celso Providelo
re-basing slave-scanner-ng changes. |
25 |
service = BuilddManager() |
26 |
service.setServiceParent(application) |
|
8486.7.1
by Celso Providelo
Fixing bug #380848 (buildd-manager circular imports, also testing if the TAC file starts and stops correctly). |
27 |