]> granicus.if.org Git - ejabberd/commitdiff
Allow to define additional Erlang options in ejabberdctl.cfg (thanks to Sergei Golovan)
authorBadlop <badlop@process-one.net>
Fri, 15 May 2009 22:10:53 +0000 (22:10 +0000)
committerBadlop <badlop@process-one.net>
Fri, 15 May 2009 22:10:53 +0000 (22:10 +0000)
SVN Revision: 2079

src/ejabberdctl.cfg.example
src/ejabberdctl.template

index d6bb80e166456b9c913d8b3bc0fb35a06a7693d3..0c8d0c5a6bafc3b149a37633fae4ae4927e12801 100644 (file)
 #ERL_MAX_ETS_TABLES=1400
 
 #.
-#' ERLANG_NODE
+#' ERL_OPTIONS: Additional Erlang options
+#
+# The next variable allows to specify additional options passed to erlang while
+# starting ejabberd. Some useful options are -noshell, -detached, -heart. When
+# ejabberd is started from an init.d script options -noshell and -detached are
+# added implicitly. See erl(1) for more info.
+#
+# It might be useful to add "-pa /usr/local/lib/ejabberd/ebin" if you
+# want to add local modules in this path.
+#
+# Default: ""
+#
+#ERL_OPTIONS=""
+
+#.
+#' ERLANG_NODE: Erlang node name
+#
 # The next variable allows to explicitly specify erlang node for ejabberd
 # It can be given in different formats:
 # ERLANG_NODE=ejabberd
 #
 #ERLANG_NODE=ejabberd
 
+#.
+#'
 # vim: foldmarker=#',#. foldmethod=marker:
index dcb8f2ac99a1ab3a015b548c61c237524b9257a9..5ed63b70e3b42b1ca9e6bb1f3a386b7038d577b6 100644 (file)
@@ -79,7 +79,7 @@ else
     KERNEL_OPTS="-kernel inet_dist_listen_min ${FIREWALL_WINDOW%-*} inet_dist_listen_max ${FIREWALL_WINDOW#*-}"
 fi
 
-ERLANG_OPTS="+K $POLL -smp $SMP +P $ERL_PROCESSES $KERNEL_OPTS"
+ERLANG_OPTS="+K $POLL -smp $SMP +P $ERL_PROCESSES $ERL_OPTIONS $KERNEL_OPTS"
 
 # define additional environment variables
 if [ "$EJABBERDDIR" = "" ]; then