~launchpad-pqm/launchpad/devel

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/sh
# Start up Soyuz for local testing on a dev machine.

start_twistd() {
    # Start twistd for service $1.
    name=$1
    tac=$2
    shift 2
    mkdir -p "/var/tmp/$name"
    echo "Starting $name."
    bin/twistd \
        --logfile "/var/tmp/development-$name.log" \
        --pidfile "/var/tmp/development-$name.pid" \
        -y "$tac" $@
}

start_twistd testkeyserver lib/lp/testing/keyserver/testkeyserver.tac
start_twistd buildd-manager daemons/buildd-manager.tac
mkdir -p /var/tmp/poppy/incoming
export POPPY_ROOT=/var/tmp/poppy/incoming
start_twistd poppy-sftp daemons/poppy-sftp.tac


echo "Done."