~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
mkdir -p /var/tmp/poppy
13582.1.2 by William Grant
start-dev-soyuz now uses poppy-sftp.
17
export POPPY_ROOT=/var/tmp/poppy/incoming
18
start_twistd poppy-sftp daemons/poppy-sftp.tac
19
10373.3.5 by Jeroen Vermeulen
Automating lots of manual steps for getting Soyuz to work.
20
21
echo "Done."