summaryrefslogtreecommitdiff
path: root/src/ejabberdctl.template
diff options
context:
space:
mode:
authorBadlop <badlop@process-one.net>2008-10-12 12:00:20 +0000
committerBadlop <badlop@process-one.net>2008-10-12 12:00:20 +0000
commit416a939352eb0c98502ba20721e25d45672736aa (patch)
tree5b729a5f31b17f7cae2f9f4598c97d5848a9765f /src/ejabberdctl.template
parent* src/ejabberd_ctl.erl: Add frontend support for (diff)
* src/ejabberdctl.template: Move help print to a separate
function (EJAB-694) SVN Revision: 1637
Diffstat (limited to 'src/ejabberdctl.template')
-rw-r--r--src/ejabberdctl.template34
1 files changed, 20 insertions, 14 deletions
diff --git a/src/ejabberdctl.template b/src/ejabberdctl.template
index 02ebd56b..15e252cd 100644
--- a/src/ejabberdctl.template
+++ b/src/ejabberdctl.template
@@ -163,6 +163,23 @@ live ()
$ERLANG_OPTS $ARGS \"$@\""
}
+help ()
+{
+ echo ""
+ echo "Commands to start an ejabberd node:"
+ echo " start Start an ejabberd node in server mode"
+ echo " debug Attach an interactive Erlang shell to a running ejabberd node"
+ echo " live Start an ejabberd node in live (interactive) mode"
+ echo ""
+ echo "Optional parameters when starting an ejabberd node:"
+ echo " --config file Config ejabberd: $EJABBERD_CONFIG_PATH"
+ echo " --ctl-config file Config ejabberdctl: $EJABBERDCTL_CONFIG_PATH"
+ echo " --logs dir Directory for logs: $LOGS_DIR"
+ echo " --spool dir Database spool dir: $SPOOLDIR"
+ echo " --node nodename ejabberd node name: $ERLANG_NODE"
+ echo ""
+}
+
# common control function
ctl ()
{
@@ -175,20 +192,9 @@ ctl ()
result=$?
case $result in
0) :;;
- *)
- echo ""
- echo "Commands to start an ejabberd node:"
- echo " start Start an ejabberd node in server mode"
- echo " debug Attach an interactive Erlang shell to a running ejabberd node"
- echo " live Start an ejabberd node in live (interactive) mode"
- echo ""
- echo "Optional parameters when starting an ejabberd node:"
- echo " --config file Config file of ejabberd: $EJABBERD_CONFIG_PATH"
- echo " --ctl-config file Config file of ejabberdctl: $EJABBERDCTL_CONFIG_PATH"
- echo " --logs dir Directory for logs: $LOGS_DIR"
- echo " --spool dir Database spool dir: $SPOOLDIR"
- echo " --node nodename ejabberd node name: $ERLANG_NODE"
- echo "";;
+ 1) :;;
+ 2) help;;
+ 3) help;;
esac
return $result
}