25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-10-31 15:21:38 +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()
{
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
} || {