ejabberdctl: Ammend a22c88a text when ERL_DIST_PORT is already used

This commit is contained in:
Badlop
2025-12-17 13:54:02 +01:00
parent ff31ef7f3d
commit 124d3f3ab0
+8 -5
View File
@@ -313,12 +313,15 @@ stop_epmd()
check_start()
{
[ -n "$ERL_DIST_PORT" ] && {
netstat -nl | grep ":5210" >/dev/null && {
echo "Error: The file ejabberdctl.cfg has configured ERL_DIST_PORT=$ERL_DIST_PORT"
echo " but the port 5210 is already in use."
echo " Stop that program or configure a different ERL_DIST_PORT"
netstat -nl | grep ":$ERL_DIST_PORT" >/dev/null && {
echo ""
netstat -nlp | grep ":5210"
echo "NOTE: The file ejabberdctl.cfg has configured ERL_DIST_PORT=$ERL_DIST_PORT"
echo " and the port 5210 is already in use."
echo " If ejabberd fails to start with listen error eaddrinsuse,"
echo " try configuring in ejabberdctl.cfg a different"
echo " INET_DIST_INTERFACE, or different ERL_DIST_PORT"
echo ""
netstat -nlp 2>/dev/null | grep ":5210"
echo ""
}
return