boulder/start_amqp.sh

30 lines
742 B
Bash
Executable File

#!/bin/bash
# Run both boulder and cfssl, using test configs.
if type realpath >/dev/null 2>/dev/null; then
cd $(realpath $(dirname $0))
fi
run_boulder() {
local prog=$1
export BOULDER_CONFIG=${BOULDER_CONFIG:-test/boulder-config.json}
go run ./cmd/${prog}/main.go
}
# Kill all children on exit.
trap "trap - SIGTERM && kill -- -$$" SIGINT SIGTERM EXIT
run_boulder boulder-ca &
run_boulder boulder-va &
run_boulder boulder-sa &
run_boulder boulder-ra &
run_boulder boulder-wfe &
run_boulder activity-monitor &
go run Godeps/_workspace/src/github.com/cloudflare/cfssl/cmd/cfssl/cfssl.go \
-loglevel 0 \
serve \
-port 9000 \
-ca test/test-ca.pem \
-ca-key test/test-ca.key \
-config test/cfssl-config.json &
sleep 100000