~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to utilities/start-dev-soyuz.sh

[rs=buildbot-poller] automatic merge from stable. Revisions: 14451,
        14452, 14453, 14454, 14455 included.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
 
4
4
start_twistd() {
5
5
    # Start twistd for service $1.
6
 
    mkdir -p "/var/tmp/$1"
7
 
    echo "Starting $1."
 
6
    name=$1
 
7
    tac=$2
 
8
    shift 2
 
9
    mkdir -p "/var/tmp/$name"
 
10
    echo "Starting $name."
8
11
    bin/twistd \
9
 
        --logfile "/var/tmp/development-$1.log" \
10
 
        --pidfile "/var/tmp/development-$1.pid" \
11
 
        -y "$2"
 
12
        --logfile "/var/tmp/development-$name.log" \
 
13
        --pidfile "/var/tmp/development-$name.pid" \
 
14
        -y "$tac" $@
12
15
}
13
16
 
14
17
start_twistd testkeyserver lib/lp/testing/keyserver/testkeyserver.tac
15
18
start_twistd buildd-manager daemons/buildd-manager.tac
16
 
mkdir -p /var/tmp/poppy
 
19
mkdir -p /var/tmp/poppy/incoming
17
20
export POPPY_ROOT=/var/tmp/poppy/incoming
18
21
start_twistd poppy-sftp daemons/poppy-sftp.tac
19
22