Add -hidden flag when calling Debug or Ctl
SVN Revision: 2356
This commit is contained in:
parent
0e19ca68b4
commit
30697ca0a1
|
@ -4111,6 +4111,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}).
|
||||
|
|
|
@ -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=$?
|
||||
|
|
|
@ -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 $@
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue