aboutsummaryrefslogtreecommitdiffstats
path: root/priv/templates/extended_bin
diff options
context:
space:
mode:
authorAnthony Molinaro <[email protected]>2016-03-28 10:55:45 -0700
committerAnthony Molinaro <[email protected]>2016-03-28 10:55:45 -0700
commit6e419a99f6b58817a8d39901a053ee752596cff8 (patch)
tree69b3e6aaeda105f1b3b923b09324dd8cee432360 /priv/templates/extended_bin
parent946155322d9279401f3e6140627d2b0ebf1dddde (diff)
downloadrelx-6e419a99f6b58817a8d39901a053ee752596cff8.tar.gz
relx-6e419a99f6b58817a8d39901a053ee752596cff8.tar.bz2
relx-6e419a99f6b58817a8d39901a053ee752596cff8.zip
provide eval command for nodetool and start script
Diffstat (limited to 'priv/templates/extended_bin')
-rwxr-xr-xpriv/templates/extended_bin11
1 files changed, 10 insertions, 1 deletions
diff --git a/priv/templates/extended_bin b/priv/templates/extended_bin
index 3c71c84..d7a9a0b 100755
--- a/priv/templates/extended_bin
+++ b/priv/templates/extended_bin
@@ -449,9 +449,18 @@ case "$1" in
relx_nodetool rpcterms $@
;;
+ eval)
+ # Make sure a node IS running
+ if ! relx_nodetool "ping" > /dev/null; then
+ echo "Node is not running!"
+ exit 1
+ fi
+ shift
+ relx_nodetool "eval" $@
+ ;;
*)
- echo "Usage: $REL_NAME {start|start_boot <file>|foreground|stop|restart|reboot|pid|ping|console|console_clean|console_boot <file>|attach|remote_console|upgrade|escript|rpc|rpcterms}"
+ echo "Usage: $REL_NAME {start|start_boot <file>|foreground|stop|restart|reboot|pid|ping|console|console_clean|console_boot <file>|attach|remote_console|upgrade|escript|rpc|rpcterms|eval}"
exit 1
;;
esac