Created
September 10, 2014 20:59
-
-
Save nlf/990aa5b13bdb124e5682 to your computer and use it in GitHub Desktop.
restart riak and wait for vnodes to come up
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
function riboot() { | |
echo "stopping riak.." | |
riak stop >/dev/null 2>&1 | |
echo "starting riak.." | |
riak start >/dev/null 2>&1 | |
echo -n "waiting.." | |
until riak-admin test >/dev/null 2>&1; do echo -n "."; sleep 1; done | |
echo "done" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment