Skip to content

Instantly share code, notes, and snippets.

@jgmize
Created October 12, 2015 07:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jgmize/6175f697259a9df5c6f2 to your computer and use it in GitHub Desktop.
Save jgmize/6175f697259a9df5c6f2 to your computer and use it in GitHub Desktop.
#!/bin/bash
while true; do
sleep 1;
date;
fleetctl list-units| grep $1;
for s in $(etcdctl ls /deis/services/$1); do
echo $s $(etcdctl get $s);
done;
docker exec deis-router cat /opt/nginx/conf/nginx.conf | awk "/upstream $1/,/}/"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment