Source

riak jiak.py client_id / start-eventer.sh

justin 1c37b76 
Andy Gross 8e5c8ff 
justin 1c37b76 



Ryan Tilder 0b9fd28 
Ryan Tilder 6f38451 


Andy Gross 8e5c8ff 
Ryan Tilder 6f38451 

justin 1c37b76 
Andy Gross 8e5c8ff 
#!/usr/bin/env bash
# ./start-eventer.sh <clustername> <cookie> <ip> <port> <nodename> <eventmodname> <eventmodarg> <matchspec>
# This will:
#  Join riak cluster <clustername> using erlcookie <cookie>
#  via the node listening at <ip>:<port>
#  and register a riak event handler
if [ $# -lt 7 ]; then
    echo Usage: 1>&2
    echo "    `basename $0` <clustername> <cookie> <ip in ring> " 1>&2
    echo "                  <doorbell port> <nodename> <event module name>" 1>&2
    echo "                  <event module args> <matchspec>" 1>&2
    exit 1
fi
. riak-env.sh
erl -noshell -pa deps/*/ebin -pa ebin -name $5 -run riak_eventer eventer_config $1 $2 -run riak start -run riak_eventer do_eventer $3 $4 $6 $7 $8