~charmers/charms/precise/buildbot-master/trunk

« back to all changes in this revision

Viewing changes to hooks/start

  • Committer: Francesco Banconi
  • Date: 2012-02-07 14:37:13 UTC
  • mfrom: (11.1.8 dynamic-relationship)
  • Revision ID: francesco.banconi@canonical.com-20120207143713-7ycviq0xpp8roffy
Merged branch dynamic-relationship and added cleanup fixes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/python
2
2
 
 
3
# Copyright 2012 Canonical Ltd.  This software is licensed under the
 
4
# GNU Affero General Public License version 3 (see the file LICENSE).
 
5
 
3
6
from helpers import (
4
 
    command,
5
 
    get_config,
6
7
    log,
7
8
    run,
8
9
    )
9
10
 
10
 
# Log the fact that we're about to begin the start step.
11
 
log('--> start')
12
 
 
13
 
config = get_config()
14
 
buildbot_dir =  config.get('installdir')
15
 
# Actually starting the buildbot happens in config-changed.
16
 
run('open-port', '8010/TCP')
17
 
 
18
 
# Log the fact that the start step is done.
19
 
log('<-- start')
 
11
 
 
12
def main():
 
13
    # Actually starting the buildbot happens in config-changed.
 
14
    run('open-port', '8010/TCP')
 
15
 
 
16
 
 
17
if __name__ == '__main__':
 
18
    log('START HOOK:')
 
19
    main()