~launchpad-pqm/launchpad/devel

10466.5.1 by Jeroen Vermeulen
Don't error out so quickly.
1
#!/bin/sh
10373.3.5 by Jeroen Vermeulen
Automating lots of manual steps for getting Soyuz to work.
2
# Start up Soyuz for local testing on a dev machine.
3
4
start_twistd() {
5
    # Start twistd for service $1.
6
    mkdir -p "/var/tmp/$1"
7
    echo "Starting $1."
8
    bin/twistd \
9
        --logfile "/var/tmp/development-$1.log" \
10
        --pidfile "/var/tmp/development-$1.pid" \
12398.1.19 by Jonathan Lange
Run the testkeyserver process properly
11
        -y "$2"
10373.3.5 by Jeroen Vermeulen
Automating lots of manual steps for getting Soyuz to work.
12
}
13
12398.1.19 by Jonathan Lange
Run the testkeyserver process properly
14
start_twistd testkeyserver lib/lp/testing/keyserver/testkeyserver.tac
15
start_twistd buildd-manager daemons/buildd-manager.tac
10373.3.5 by Jeroen Vermeulen
Automating lots of manual steps for getting Soyuz to work.
16
17
echo "Starting poppy."
18
mkdir -p /var/tmp/poppy
19
bin/py daemons/poppy-upload.py /var/tmp/poppy/incoming 2121 &
20
21
echo "Done."