From d34dab482274e3b5f0e0867798090e3415e02e33 Mon Sep 17 00:00:00 2001 From: Christophe Romain Date: Mon, 17 Jan 2011 16:52:20 +0100 Subject: [PATCH] improve check_start, avoid false process match with grep --- src/ejabberdctl.template | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ejabberdctl.template b/src/ejabberdctl.template index 5ad993b56..29e298988 100644 --- a/src/ejabberdctl.template +++ b/src/ejabberdctl.template @@ -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 } || {