~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.
14449.1.1 by William Grant
Some improvements from lifeless for start-dev-soyuz.sh.
6
    name=$1
7
    tac=$2
8
    shift 2
9
    mkdir -p "/var/tmp/$name"
10
    echo "Starting $name."
10373.3.5 by Jeroen Vermeulen
Automating lots of manual steps for getting Soyuz to work.
11
    bin/twistd \
14449.1.1 by William Grant
Some improvements from lifeless for start-dev-soyuz.sh.
12
        --logfile "/var/tmp/development-$name.log" \
13
        --pidfile "/var/tmp/development-$name.pid" \
14
        -y "$tac" $@
10373.3.5 by Jeroen Vermeulen
Automating lots of manual steps for getting Soyuz to work.
15
}
16
12398.1.19 by Jonathan Lange
Run the testkeyserver process properly
17
start_twistd testkeyserver lib/lp/testing/keyserver/testkeyserver.tac
18
start_twistd buildd-manager daemons/buildd-manager.tac
14449.1.1 by William Grant
Some improvements from lifeless for start-dev-soyuz.sh.
19
mkdir -p /var/tmp/poppy/incoming
13582.1.2 by William Grant
start-dev-soyuz now uses poppy-sftp.
20
export POPPY_ROOT=/var/tmp/poppy/incoming
21
start_twistd poppy-sftp daemons/poppy-sftp.tac
22
10373.3.5 by Jeroen Vermeulen
Automating lots of manual steps for getting Soyuz to work.
23
24
echo "Done."