improve check_start, avoid false process match with grep

This commit is contained in:
Christophe Romain 2011-01-17 16:52:20 +01:00
parent ad357c2f59
commit d34dab4822
1 changed files with 1 additions and 1 deletions

View File

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