diff options
author | Jordan Wilberding <[email protected]> | 2015-01-30 16:15:39 -0800 |
---|---|---|
committer | Jordan Wilberding <[email protected]> | 2015-01-30 16:15:39 -0800 |
commit | 3a6b64302bd05441b942da56f5f5deed9b0c58b0 (patch) | |
tree | 95a1aed080e997d414721ac109aae7ed6e06b92a | |
parent | 89ca72ed04f23292f6d001199cf61d05d9c2a0de (diff) | |
parent | 67246095cf5e7ad0a978cc69c62c5429ec423b56 (diff) | |
download | relx-3a6b64302bd05441b942da56f5f5deed9b0c58b0.tar.gz relx-3a6b64302bd05441b942da56f5f5deed9b0c58b0.tar.bz2 relx-3a6b64302bd05441b942da56f5f5deed9b0c58b0.zip |
Merge pull request #306 from tsloughter/master
expose rpc and rpcterms functionality from extended bins script
-rw-r--r-- | priv/templates/extended_bin.dtl | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/priv/templates/extended_bin.dtl b/priv/templates/extended_bin.dtl index 87f69ba..005475a 100644 --- a/priv/templates/extended_bin.dtl +++ b/priv/templates/extended_bin.dtl @@ -391,8 +391,31 @@ case "$1" in # Start the VM exec "$@" -- ${1+$ARGS} ;; + rpc) + # Make sure a node IS running + if ! relx_nodetool "ping" > /dev/null; then + echo "Node is not running!" + exit 1 + fi + + shift + + relx_nodetool rpc $@ + ;; + rpcterms) + # Make sure a node IS running + if ! relx_nodetool "ping" > /dev/null; then + echo "Node is not running!" + exit 1 + fi + + shift + + relx_nodetool 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}" + 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}" exit 1 ;; esac |