mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-20 16:15:59 +01:00
Add -hidden flag when calling Debug or Ctl
SVN Revision: 2354
This commit is contained in:
parent
fc55db403e
commit
a7eb5a77eb
@ -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}).
|
||||
|
@ -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
Block a user