From 85e59c14d26f691ae1ff5ef4cf5a4ade22450a13 Mon Sep 17 00:00:00 2001 From: Badlop Date: Mon, 7 Jun 2010 20:28:18 +0200 Subject: [PATCH] New argument --erlargs to pass arguments to erl --- src/ejabberdctl.template | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/ejabberdctl.template b/src/ejabberdctl.template index 9ede77dfe..ed965e58c 100644 --- a/src/ejabberdctl.template +++ b/src/ejabberdctl.template @@ -27,6 +27,7 @@ while [ $# -ne 0 ] ; do --ctl-config) EJABBERDCTL_CONFIG_PATH=$1 ; shift ;; --logs) LOGS_DIR=$1 ; shift ;; --spool) SPOOLDIR=$1 ; shift ;; + --erlargs) ERL_ARGS=$1 ; shift ;; *) ARGS="$ARGS $PARAM" ;; esac done @@ -143,7 +144,7 @@ start () -mnesia dir \"\\\"$SPOOLDIR\\\"\" \ -s ejabberd \ -sasl sasl_error_logger \\{file,\\\"$SASL_LOG_PATH\\\"\\} \ - $ERLANG_OPTS $ARGS \"$@\"" + $ERLANG_OPTS $ARGS \"$@\" $ERL_ARGS" } # attach to server @@ -174,7 +175,7 @@ debug () $NAME debug-${TTY}-${ERLANG_NODE} \ -remsh $ERLANG_NODE \ -hidden \ - $ERLANG_OPTS $ARGS \"$@\"" + $ERLANG_OPTS $ARGS \"$@\" $ERL_ARGS" } # start interactive server @@ -204,7 +205,7 @@ live () -pa $EJABBERD_EBIN_PATH \ -mnesia dir \"\\\"$SPOOLDIR\\\"\" \ -s ejabberd \ - $ERLANG_OPTS $ARGS \"$@\"" + $ERLANG_OPTS $ARGS \"$@\" $ERL_ARGS" } help () @@ -222,6 +223,7 @@ help () echo " --logs dir Directory for logs: $LOGS_DIR" echo " --spool dir Database spool dir: $SPOOLDIR" echo " --node nodename ejabberd node name: $ERLANG_NODE" + echo " --erlargs \"\" erl arguments: $ERL_ARGS" echo "" }