Skip to content

Instantly share code, notes, and snippets.

@nlf
Created September 10, 2014 20:59
Show Gist options
  • Save nlf/990aa5b13bdb124e5682 to your computer and use it in GitHub Desktop.
Save nlf/990aa5b13bdb124e5682 to your computer and use it in GitHub Desktop.
restart riak and wait for vnodes to come up
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