Skip to content

Commit

Permalink
Add a AMQP start script.
Browse files Browse the repository at this point in the history
Use bash-fu from @jsha for the default var
  • Loading branch information
J.C. Jones committed May 11, 2015
1 parent debf863 commit 89c72fe
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions start_amqp.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#!/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

0 comments on commit 89c72fe

Please sign in to comment.