Skip to content

Instantly share code, notes, and snippets.

@bernerdschaefer
Last active December 18, 2015 02:58
Show Gist options
  • Save bernerdschaefer/5714419 to your computer and use it in GitHub Desktop.
Save bernerdschaefer/5714419 to your computer and use it in GitHub Desktop.
#!/usr/bin/bash
set -e
echo "starting doozer:8046"
doozerd -timeout 30 -hist 1000 -l "127.0.0.1:8046" -w ":8080" -c test &>tmp/8046.log &
sleep 1
echo "starting doozer:8047"
doozerd -timeout 30 -hist 1000 -l "127.0.0.1:8047" -w false -b "doozer:?ca=127.0.0.1:8046" -c test &>tmp/8047.log &
sleep 1
echo "starting doozer:8048"
doozerd -timeout 30 -hist 1000 -l "127.0.0.1:8048" -w false -b "doozer:?ca=127.0.0.1:8046" -c test &>tmp/8048.log &
PID_8048=$!
sleep 1
echo -n | doozer add /ctl/cal/1 > /dev/null
echo -n | doozer add /ctl/cal/2 > /dev/null
sleep 1
kill $PID_8048
sleep 1
doozerd -timeout 30 -hist 1000 -l "127.0.0.1:8048" -w false -b "doozer:?ca=127.0.0.1:8046" -c test &>tmp/8048.log &
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment