riak-old /

Full commit de60b15 
Rusty Klophaus 248ab44 de60b15 

Rusty Klophaus 484dab3 de60b15 
Kirill Korinskiy 72301dd 
Kirill Korinskiy 5050bb8 
Rusty Klophaus cae484f 10e7854 
#!/usr/bin/env bash
# debug-join <configfile> <node>
# join an existing riak ring via a node known to be listening on ip:port
# run in interactive debug shell mode
if [ $# -lt 2 ]; then
    echo Usage: 1>&2
    echo "    `basename $0` <configfile> Node" 1>&2
    exit 1
NODENAME=$(erl -noshell -pa ebin -eval "error_logger:tty(false), riak_app:read_config(\"$1\"), io:format(\"~s~n\",[riak:get_app_env(riak_nodename, riak)])" -run init stop)
HOSTNAME=$(erl -noshell -pa ebin -eval "error_logger:tty(false), riak_app:read_config(\"$1\"), io:format(\"~s~n\",[riak:get_app_env(riak_hostname, `hostname -f`)])" -run init stop)
COOKIE=$(erl -noshell -pa ebin -eval "error_logger:tty(false), riak_app:read_config(\"$1\"), io:format(\"~s~n\",[riak:get_app_env(riak_cookie)])" -run init stop)
SASL_LOG=$(erl -noshell -pa ebin -eval "error_logger:tty(false), riak_app:read_config(\"$1\"), io:format(\"~s~n\",[riak:get_app_env(sasl_logfile)])" -run init stop)
exec erl -connect_all false -pa deps/*/ebin -pa ebin -name ${NODENAME}@${HOSTNAME} -setcookie ${COOKIE} -sasl sasl_error_logger \{file,\ \"${SASL_LOG}\"\} -run riak start $1 -run riak_startup join_cluster $2