24
1
mirror of https://github.com/processone/ejabberd.git synced 2024-06-08 21:43:07 +02: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:
Badlop 2023-09-26 13:55:34 +02:00
parent b33d660f88
commit cd421f98d7
3 changed files with 9 additions and 4 deletions

View File

@ -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"

View File

@ -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"

View File

@ -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"
} }
#. #.