mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-24 16:23:40 +01:00
ejabberdctl: Document how to stop a debug shell: control+g
control+g is the correct way to enter shell break mode, as documented in https://www.erlang.org/doc/apps/erts/tty The ejabberdctl script included in installers use the included VT100, and that may break when hitting control+c. In that scenario let's explicitly recommend to not use control+c. Thanks to Holger Weiß for the report.
This commit is contained in:
parent
b33d660f88
commit
cd421f98d7
6
.github/container/ejabberdctl.template
vendored
6
.github/container/ejabberdctl.template
vendored
@ -162,9 +162,11 @@ debugwarning()
|
|||||||
echo "Please be extremely cautious with your actions,"
|
echo "Please be extremely cautious with your actions,"
|
||||||
echo "and exit immediately if you are not completely sure."
|
echo "and exit immediately if you are not completely sure."
|
||||||
echo ""
|
echo ""
|
||||||
echo "To detach this shell from ejabberd, press:"
|
echo "To exit and detach this shell from ejabberd, press:"
|
||||||
echo " control+c, control+c"
|
echo " control+g and then q"
|
||||||
echo ""
|
echo ""
|
||||||
|
#vt100 echo "Please do NOT use control+c in this debug shell !"
|
||||||
|
#vt100 echo ""
|
||||||
echo "--------------------------------------------------------------------"
|
echo "--------------------------------------------------------------------"
|
||||||
echo "To bypass permanently this warning, add to ejabberdctl.cfg the line:"
|
echo "To bypass permanently this warning, add to ejabberdctl.cfg the line:"
|
||||||
echo " EJABBERD_BYPASS_WARNINGS=true"
|
echo " EJABBERD_BYPASS_WARNINGS=true"
|
||||||
|
@ -149,9 +149,11 @@ debugwarning()
|
|||||||
echo "Please be extremely cautious with your actions,"
|
echo "Please be extremely cautious with your actions,"
|
||||||
echo "and exit immediately if you are not completely sure."
|
echo "and exit immediately if you are not completely sure."
|
||||||
echo ""
|
echo ""
|
||||||
echo "To detach this shell from ejabberd, press:"
|
echo "To exit and detach this shell from ejabberd, press:"
|
||||||
echo " control+c, control+c"
|
echo " control+g and then q"
|
||||||
echo ""
|
echo ""
|
||||||
|
#vt100 echo "Please do NOT use control+c in this debug shell !"
|
||||||
|
#vt100 echo ""
|
||||||
echo "--------------------------------------------------------------------"
|
echo "--------------------------------------------------------------------"
|
||||||
echo "To bypass permanently this warning, add to ejabberdctl.cfg the line:"
|
echo "To bypass permanently this warning, add to ejabberdctl.cfg the line:"
|
||||||
echo " EJABBERD_BYPASS_WARNINGS=true"
|
echo " EJABBERD_BYPASS_WARNINGS=true"
|
||||||
|
@ -411,6 +411,7 @@ edit_ejabberdctl()
|
|||||||
-e '/ERL_OPTIONS=/d' \
|
-e '/ERL_OPTIONS=/d' \
|
||||||
-e 's|_DIR:=".*}/|_DIR:="/opt/ejabberd/|' \
|
-e 's|_DIR:=".*}/|_DIR:="/opt/ejabberd/|' \
|
||||||
-e 's|/database|/database/$ERLANG_NODE|' \
|
-e 's|/database|/database/$ERLANG_NODE|' \
|
||||||
|
-e 's|#vt100 ||' \
|
||||||
"$code_dir/bin/${rel_name}ctl"
|
"$code_dir/bin/${rel_name}ctl"
|
||||||
}
|
}
|
||||||
#.
|
#.
|
||||||
|
Loading…
Reference in New Issue
Block a user