aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBadlop <badlop@process-one.net>2011-05-31 12:26:44 +0200
committerBadlop <badlop@process-one.net>2011-05-31 12:26:44 +0200
commit32d3d1626bf8a8c2d01a4c6b2f6e5bc570e6045b (patch)
treeda57913b0f858b3f573cd55ba62370fae4037518
parentCut the string when calling halt/1 (diff)
New ERL_EPMD_ADDRESS that works since Erlang/OTP R14B03
-rw-r--r--doc/guide.tex4
-rw-r--r--src/ejabberdctl.cfg.example16
-rw-r--r--src/ejabberdctl.template1
3 files changed, 21 insertions, 0 deletions
diff --git a/doc/guide.tex b/doc/guide.tex
index 463a12f48..e0ac739fb 100644
--- a/doc/guide.tex
+++ b/doc/guide.tex
@@ -4980,6 +4980,8 @@ The environment variables:
This path is used to read the file \term{.erlang.cookie}.
\titem{ERL\_CRASH\_DUMP}
Path to the file where crash reports will be dumped.
+ \titem{ERL\_EPMD\_ADDRESS}
+ IP address where epmd listens for connections (see section \ref{epmd}).
\titem{ERL\_INETRC}
Indicates which IP name resolution to use.
If using \term{-sname}, specify either this option or \term{-kernel inetrc filepath}.
@@ -5401,6 +5403,8 @@ In order for this communication to work,
\term{epmd} must be running and listening for name requests in the port 4369.
You should block the port 4369 in the firewall in such a way that
only the programs in your machine can access it.
+or configure the option \term{ERL\_EPMD\_ADDRESS} in the file \term{ejabberdctl.cfg}
+(this option works only in Erlang/OTP R14B03 or higher).
If you build a cluster of several \ejabberd{} instances,
each \ejabberd{} instance is called an \ejabberd{} node.
diff --git a/src/ejabberdctl.cfg.example b/src/ejabberdctl.cfg.example
index 2106e3d22..3f116d180 100644
--- a/src/ejabberdctl.cfg.example
+++ b/src/ejabberdctl.cfg.example
@@ -62,6 +62,22 @@
INET_DIST_INTERFACE={127,0,0,1}
#.
+#' ERL_EPMD_ADDRESS: IP addresses where epmd listens for connections
+#
+# IMPORTANT: This option works only in Erlang/OTP R14B03 and newer.
+#
+# This environment variable may be set to a comma-separated
+# list of IP addresses, in which case the epmd daemon
+# will listen only on the specified address(es) and on the
+# loopback address (which is implicitly added to the list if it
+# has not been specified). The default behaviour is to listen on
+# all available IP addresses.
+#
+# Default: 0.0.0.0
+#
+#ERL_EPMD_ADDRESS=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 650aa520d..d2f20fa79 100644
--- a/src/ejabberdctl.template
+++ b/src/ejabberdctl.template
@@ -129,6 +129,7 @@ export EJABBERD_BIN_PATH
export EJABBERD_DOC_PATH
export EJABBERD_PID_PATH
export ERL_CRASH_DUMP
+export ERL_EPMD_ADDRESS
export ERL_INETRC
export ERL_MAX_PORTS
export ERL_MAX_ETS_TABLES