diff --git a/src/ejabberdctl.template b/src/ejabberdctl.template index 931b10236..11dd3037a 100644 --- a/src/ejabberdctl.template +++ b/src/ejabberdctl.template @@ -77,6 +77,8 @@ fi NAME=-name [ "$ERLANG_NODE" = "${ERLANG_NODE%.*}" ] && NAME=-sname +NODE=${ERLANG_NODE%@*} +HOST=${ERLANG_NODE#*@} KERNEL_OPTS="" if [ "$FIREWALL_WINDOW" != "" ] ; then @@ -353,7 +355,7 @@ check_start() { epmd -names | grep -q $NODE && { ps ux | grep -v grep | grep -q $ERLANG_NODE && { - echo "ejabberd is already running." + echo "ejabberd in node $ERLANG_NODE is already running." exit 4 } || { ps ux | grep beam | grep -v "grep beam" && {