diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/ejabberdctl.cfg.example | 11 | ||||
-rw-r--r-- | src/ejabberdctl.template | 4 |
2 files changed, 15 insertions, 0 deletions
diff --git a/src/ejabberdctl.cfg.example b/src/ejabberdctl.cfg.example index 4a3db1c8..fe703242 100644 --- a/src/ejabberdctl.cfg.example +++ b/src/ejabberdctl.cfg.example @@ -51,6 +51,17 @@ #FIREWALL_WINDOW= #. +#' INET_DIST_INTERFACE: IP address where this Erlang node listens other nodes +# +# This communication is used by ejabberdctl command line tool, +# and in a cluster of several ejabberd nodes. +# Notice that the IP address must be specified in the Erlang syntax. +# +# Default: {127,0,0,1} +# +INET_DIST_INTERFACE={127,0,0,1} + +#. #' ERL_PROCESSES: Maximum number of Erlang processes # # Erlang consumes a lot of lightweight processes. If there is a lot of activity diff --git a/src/ejabberdctl.template b/src/ejabberdctl.template index a21c6527..f12a1248 100644 --- a/src/ejabberdctl.template +++ b/src/ejabberdctl.template @@ -82,6 +82,10 @@ else KERNEL_OPTS="-kernel inet_dist_listen_min ${FIREWALL_WINDOW%-*} inet_dist_listen_max ${FIREWALL_WINDOW#*-}" fi +if [ "$INET_DIST_INTERFACE" != "" ] ; then + KERNEL_OPTS+="-kernel inet_dist_use_interface \"${INET_DIST_INTERFACE}\"" +fi + ERLANG_OPTS="+K $POLL -smp $SMP +P $ERL_PROCESSES $ERL_OPTIONS" # define additional environment variables |