Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 354637
Collapse All | Expand All

(-)a/doc/guide.tex (+9 lines)
Lines 4538-4543 Link Here
4538
	If using \term{-sname}, specify either this option or \term{ERL\_INETRC}.
4538
	If using \term{-sname}, specify either this option or \term{ERL\_INETRC}.
4539
  \titem{-kernel inet\_dist\_listen\_min 4200 inet\_dist\_listen\_min 4210}
4539
  \titem{-kernel inet\_dist\_listen\_min 4200 inet\_dist\_listen\_min 4210}
4540
	Define the first and last ports that \term{epmd} (section \ref{epmd}) can listen to.
4540
	Define the first and last ports that \term{epmd} (section \ref{epmd}) can listen to.
4541
  \titem{-kernel inet\_dist\_use\_interface "\{ 127,0,0,1 \}"}
4542
	Define the IP address where this Erlang node listens for other nodes
4543
        connections (see section \ref{epmd}).
4541
  \titem{-detached}
4544
  \titem{-detached}
4542
        Starts the Erlang system detached from the system console.
4545
        Starts the Erlang system detached from the system console.
4543
	Useful for running daemons and backgrounds processes.
4546
	Useful for running daemons and backgrounds processes.
Lines 4950-4955 Link Here
4950
\begin{verbatim}
4953
\begin{verbatim}
4951
erl ... -kernel inet_dist_listen_min 4370 inet_dist_listen_max 4375
4954
erl ... -kernel inet_dist_listen_min 4370 inet_dist_listen_max 4375
4952
\end{verbatim}
4955
\end{verbatim}
4956
It is also possible to configure in \term{ejabberdctl.cfg}
4957
the network interface where the Erlang node will listen and accept connections.
4958
The Erlang command-line parameter used internally is, for example:
4959
\begin{verbatim}
4960
erl ... -kernel inet_dist_use_interface "{127,0,0,1}"
4961
\end{verbatim}
4953
4962
4954
4963
4955
\makesection{cookie}{Erlang Cookie}
4964
\makesection{cookie}{Erlang Cookie}
(-)a/src/ejabberdctl.cfg.example (+11 lines)
Lines 51-56 Link Here
51
#FIREWALL_WINDOW=
51
#FIREWALL_WINDOW=
52
52
53
#.
53
#.
54
#' INET_DIST_INTERFACE: IP address where this Erlang node listens other nodes
55
#
56
# This communication is used by ejabberdctl command line tool,
57
# and in a cluster of several ejabberd nodes.
58
# Notice that the IP address must be specified in the Erlang syntax.
59
#
60
# Default: {127,0,0,1}
61
#
62
INET_DIST_INTERFACE={127,0,0,1}
63
64
#.
54
#' ERL_PROCESSES: Maximum number of Erlang processes
65
#' ERL_PROCESSES: Maximum number of Erlang processes
55
#
66
#
56
# Erlang consumes a lot of lightweight processes. If there is a lot of activity
67
# Erlang consumes a lot of lightweight processes. If there is a lot of activity
(-)a/src/ejabberdctl.template (+4 lines)
Lines 82-87 Link Here
82
    KERNEL_OPTS="-kernel inet_dist_listen_min ${FIREWALL_WINDOW%-*} inet_dist_listen_max ${FIREWALL_WINDOW#*-}"
82
    KERNEL_OPTS="-kernel inet_dist_listen_min ${FIREWALL_WINDOW%-*} inet_dist_listen_max ${FIREWALL_WINDOW#*-}"
83
fi
83
fi
84
84
85
if [ "$INET_DIST_INTERFACE" != "" ] ; then
86
    KERNEL_OPTS+="-kernel inet_dist_use_interface \"${INET_DIST_INTERFACE}\""
87
fi
88
85
ERLANG_OPTS="+K $POLL -smp $SMP +P $ERL_PROCESSES $ERL_OPTIONS"
89
ERLANG_OPTS="+K $POLL -smp $SMP +P $ERL_PROCESSES $ERL_OPTIONS"
86
90
87
# define additional environment variables
91
# define additional environment variables

Return to bug 354637