]> granicus.if.org Git - ejabberd/commitdiff
Add -hidden flag when calling Debug or Ctl
authorBadlop <badlop@process-one.net>
Mon, 6 Jul 2009 14:08:57 +0000 (14:08 +0000)
committerBadlop <badlop@process-one.net>
Mon, 6 Jul 2009 14:08:57 +0000 (14:08 +0000)
SVN Revision: 2354

doc/guide.tex
src/ejabberdctl.template
tools/ejabberdctl

index 96861581da57ae442d9dec0fb1dcc5d39c4795df..80bc03277ab1d1cc8e0981b399a2a3ec93ef51c6 100644 (file)
@@ -4192,6 +4192,10 @@ The command line parameters:
        Maximum number of Erlang processes.
   \titem{-remsh ejabberd@localhost}
        Open an Erlang shell in a remote Erlang node.
+  \titem{-hidden}
+       The connections to other nodes are hidden (not published).
+       The result is that this node is not considered part of the cluster.
+       This is important when starting a temporary \term{ctl} or \term{debug} node.
 \end{description}
 Note that some characters need to be escaped when used in shell scripts, for instance \verb|"| and \verb|{}|.
 You can find other options in the Erlang manual page (\shell{erl -man erl}).
index 5ed63b70e3b42b1ca9e6bb1f3a386b7038d577b6..71634d87fcbf6fbae1d27b88b0d3b234868549df 100644 (file)
@@ -164,6 +164,7 @@ debug ()
     $EXEC_CMD "$ERL \
       $NAME ${NODE}debug \
       -remsh $ERLANG_NODE \
+      -hidden \
       $ERLANG_OPTS $ARGS \"$@\""
 }
 
@@ -218,6 +219,7 @@ ctl ()
     $EXEC_CMD "$ERL \
       $NAME ejabberdctl \
       -noinput \
+      -hidden \
       -pa $EJABBERD_EBIN_PATH \
       -s ejabberd_ctl -extra $ERLANG_NODE $COMMAND"
     result=$?
index c821e80812654fae0fbb1b3b95f6d7b2228fd255..f084059a4be4719eb5875e6c48fba9aeae1cb90d 100755 (executable)
@@ -39,6 +39,7 @@ function debug
       -sname debug$NODE@$HOST \
       -pa $EJABBERD_EBIN \
       -mnesia dir "\"$EJABBERD_DB\"" \
+      -hidden \
       -remsh $NODE@$HOST
 }
 
@@ -48,6 +49,7 @@ function ctl
       -noinput \
       -sname ejabberdctl@$HOST \
       -pa $EJABBERD_EBIN \
+      -hidden \
       -s ejabberd_ctl -extra $NODE@$HOST $@
 }