summaryrefslogtreecommitdiff
path: root/src/hub/test-fwd-graphite
blob: 44f1542320cd8c0cbfc3ae5328c31c5407c2bf84 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh

if [ -z "$1" ]; then
  echo "Usage: $0 <db-name>"
  exit 1
fi

TEST_D="./test"
TEST_DB="$TEST_D/$1.bolt"

mkdir -p "$TEST_D"
rm -f "$TEST_D/pipe" "$TEST_D/pipegram"
exec ./bin/sfive-hub -db "$TEST_DB" -start-pipe-server -pipe "$TEST_D/pipe" -start-pipegram-server -pipegram "$TEST_D/pipegram" -start-web-server=false -forward-graphite=127.0.0.1:2003