25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-26 17:38:45 +01:00

improve check_start only matching node process

This commit is contained in:
Christophe Romain 2011-01-18 13:36:46 +01:00
parent 1a2e6b02ab
commit 92f5509b35

View File

@ -347,7 +347,7 @@ stop_epmd()
check_start() check_start()
{ {
epmd -names | grep -q $NODE && { epmd -names | grep -q $NODE && {
ps ux | grep -q $ERLANG_NODE && { ps ux | grep -v grep | grep -q $ERLANG_NODE && {
echo "ejabberd is already running." echo "ejabberd is already running."
exit 4 exit 4
} || { } || {