Skip to content
Browse files

riak escript

This allows a user to run an escript without having to figure out
where their version of bundled Erlang for Riak is located.

This is extremely useful when we write Erlang scripts to expose
functionality that has not been implemented yet elsewhere, such as
examining message queues.
  • Loading branch information...
1 parent fd0b6ac commit 8aab6479afc32360d5c377656b3122f2c423505b Tryn Mirell committed May 10, 2012
Showing with 5 additions and 1 deletion.
  1. +5 −1 rel/files/riak
View
6 rel/files/riak
@@ -255,11 +255,15 @@ case "$1" in
fi
echo "config is OK"
;;
+ escript)
+ shift
+ $ERTS_PATH/escript "$@"
+ ;;
version)
echo $RIAK_VERSION
;;
*)
- echo "Usage: $SCRIPT {start|stop|restart|reboot|ping|console|attach|chkconfig|version}"
+ echo "Usage: $SCRIPT {start|stop|restart|reboot|ping|console|attach|chkconfig|escript|version}"
exit 1
;;
esac

0 comments on commit 8aab647

Please sign in to comment.
Something went wrong with that request. Please try again.