Added start of a help page for the akka-cluster tool.

Signed-off-by: Jonas Bonér <jonas@jonasboner.com>
This commit is contained in:
Jonas Bonér 2012-04-16 23:40:14 +02:00
parent 846820447e
commit 03762bc9bd

View file

@ -22,6 +22,13 @@ function checkNodeIsRunning {
fi
}
# Help page is triggered by either: help, -help or --help
if [[ $1 == *help* ]]; then
echo "Welcome to Akka Cluster Administration Tool"
echo " --- TODO: Write up a help page ---"
exit 0
fi
case "$2" in
ping)
@ -173,8 +180,8 @@ case "$2" in
*)
echo "Usage: $SELF <node-hostname:jmx-port> { ping | join | leave | remove | down"
echo " member-status | cluster-status | leader"
echo " is-singleton | has-convergence | is-available }"
echo " member-status | cluster-status | leader"
echo " is-singleton | has-convergence | is-available }"
echo "Examples: $SELF localhost:9999 ping"
echo " $SELF localhost:9999 join akka://service0@localhost:5550"
echo " $SELF localhost:9999 cluster-status"