Source

riak-old / start-logger.sh

Diff from to

File start-logger.sh

 #!/usr/bin/env bash
-# ./start-eventer.sh <node> <cookie>
-# ./start-eventer.sh <node> <cookie> <filename>
+# ./start-loger.sh <node>
+# ./start-loger.sh <node> <cookie>
+# ./start-loger.sh <node> <cookie> <filename>
 
-# This will join the cluster via the node <node> using the cookie <cookie>
-# and optionally log results to filename <filename>.
-if [ $# -lt 2 ]; then
-    echo Usage: 1>&2
-    echo "    Log to console: `basename $0` <node> <cookie>"  1>&2
-    echo "    Log to file:    `basename $0` <node> <cookie> <filename>"  1>&2
-    exit 1
-fi
-. riak-env.sh
-NODE=$1
-COOKIE=$2
-FILENAME=$3
-erl -noshell -pa deps/*/ebin -pa ebin -name riak_logger -setcookie $COOKIE -eval "riak_event_logger:start('$NODE', \"$FILENAME\")."
+./riakctl start-loger $1 $2 $3