Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/processone/ejabberd.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xejabberdctl.template5
1 files changed, 2 insertions, 3 deletions
diff --git a/ejabberdctl.template b/ejabberdctl.template
index 5454757d3..3fb302187 100755
--- a/ejabberdctl.template
+++ b/ejabberdctl.template
@@ -32,8 +32,6 @@ if [ "$EXEC_CMD" = "false" ] ; then
fi
# parse command line parameters
-ARGS=`getopt -o n:s:l:f:c:d:t --long node:,spool:,logs:,config:,ctl-config:,config-dir:,no-timeout -n ejabberdctl -- "$@"`
-eval set -- "$ARGS";
for arg; do
case $1 in
-n|--node) ERLANG_NODE_ARG=$2; shift;;
@@ -43,7 +41,8 @@ for arg; do
-c|--ctl-config) EJABBERDCTL_CONFIG_PATH=$2; shift;;
-d|--config-dir) ETC_DIR=$2; shift;;
-t|--no-timeout) NO_TIMEOUT="--no-timeout";;
- --) shift; break;;
+ --) :;;
+ *) break;;
esac
shift
done