25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-09-29 14:37:44 +02: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()
{
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."
exit 4
} || {