mirror of
https://github.com/processone/ejabberd.git
synced 2024-09-27 14:30:55 +02:00
Container: Apply commit abf0796
ejabberdctl: Detect problem running etop and show some help
This commit is contained in:
parent
01909b07ce
commit
2531ebf685
16
.github/container/ejabberdctl.template
vendored
16
.github/container/ejabberdctl.template
vendored
@ -200,6 +200,21 @@ livewarning()
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
check_etop_result()
|
||||||
|
{
|
||||||
|
result=$?
|
||||||
|
if [ $result -eq 1 ] ; then
|
||||||
|
echo ""
|
||||||
|
echo "It seems there was some problem running 'ejabberdctl etop'."
|
||||||
|
echo "Is the error message something like this?"
|
||||||
|
echo " Failed to load module 'etop' because it cannot be found..."
|
||||||
|
echo "Then probably ejabberd was compiled with development tools disabled."
|
||||||
|
echo "To use 'etop', recompile ejabberd with: ./configure --enable-tools"
|
||||||
|
echo ""
|
||||||
|
exit $result
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
help()
|
help()
|
||||||
{
|
{
|
||||||
echo ""
|
echo ""
|
||||||
@ -371,6 +386,7 @@ case $1 in
|
|||||||
-eval 'net_kernel:connect_node('"'$ERLANG_NODE'"')' \
|
-eval 'net_kernel:connect_node('"'$ERLANG_NODE'"')' \
|
||||||
-s etop \
|
-s etop \
|
||||||
-output text
|
-output text
|
||||||
|
check_etop_result
|
||||||
;;
|
;;
|
||||||
iexdebug)
|
iexdebug)
|
||||||
debugwarning
|
debugwarning
|
||||||
|
Loading…
Reference in New Issue
Block a user