-
-
Notifications
You must be signed in to change notification settings - Fork 599
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |