mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-26 16:26:24 +01:00
Update NODE and HOST with the definitive values from ejabberdctl or command line
This commit is contained in:
parent
722fdd6bc7
commit
9bb4f124ad
@ -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" && {
|
||||
|
Loading…
Reference in New Issue
Block a user