~bac/charms/oneiric/buildbot-master/bbm-bugs

« back to all changes in this revision

Viewing changes to hooks/start

  • Committer: Brad Crittenden
  • Date: 2012-01-13 16:21:47 UTC
  • Revision ID: bac@canonical.com-20120113162147-4eqii4k4tmx1obtk
Almost working buildbot master charm

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/bash
 
2
# Here put anything that is needed to start the service.
 
3
# Note that currently this is run directly after install
 
4
# i.e. 'service apache2 start'
 
5
 
 
6
BUILDBOT_DIR=`config-get installdir`
 
7
 
 
8
juju-log "Creating master in $BUILDBOT_DIR"
 
9
mkdir -p $BUILDBOT_DIR
 
10
buildbot create-master $BUILDBOT_DIR
 
11
 
 
12
cp $CHARM_DIR/configuration/master.cfg.template $BUILDBOT_DIR/master.cfg
 
13
 
 
14
juju-log "Starting buildbot"
 
15
buildbot start $BUILDBOT_DIR
 
16
open-port 8010/tcp
 
17
juju-log "Finished starting buildbot"