summaryrefslogtreecommitdiff
path: root/src/ejabberdctl.template
diff options
context:
space:
mode:
authorChristophe Romain <christophe.romain@process-one.net>2008-04-01 09:07:29 +0000
committerChristophe Romain <christophe.romain@process-one.net>2008-04-01 09:07:29 +0000
commit273c076ef61df702fd10786a76e13e189135885e (patch)
treedaacfa9848b441d4d129aebb6a25b0c13689dfb0 /src/ejabberdctl.template
parent* src/ejabberd_listener.erl: Remove code of the unused listening (diff)
Add firewalling port range definition
SVN Revision: 1264
Diffstat (limited to 'src/ejabberdctl.template')
-rw-r--r--src/ejabberdctl.template8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/ejabberdctl.template b/src/ejabberdctl.template
index f50b9858..0ff23bc0 100644
--- a/src/ejabberdctl.template
+++ b/src/ejabberdctl.template
@@ -39,7 +39,13 @@ done
NAME=-name
[ "$ERLANG_NODE" = "${ERLANG_NODE%.*}" ] && NAME=-sname
-ERLANG_OPTS="+K $POLL -smp $SMP +P $ERL_PROCESSES"
+if [ "$FIREWALL_WINDOW" = "" ] ; then
+ KERNEL_OPTS=""
+else
+ KERNEL_OPTS="-kernel inet_dist_listen_min ${FIREWALL_WINDOW%-*} net_dist_listen_max ${FIREWALL_WINDOW#*-}"
+fi
+
+ERLANG_OPTS="+K $POLL -smp $SMP +P $ERL_PROCESSES $KERNEL_OPTS"
# define additional environment variables
EJABBERD_EBIN=$ROOTDIR/var/lib/ejabberd/ebin