From 722fdd6bc70803e1cbbbd1d9faddaf0370067b34 Mon Sep 17 00:00:00 2001 From: Christophe Romain Date: Mon, 17 Jan 2011 16:55:00 +0100 Subject: [PATCH] check_start must grep processes for nodename last --- src/ejabberdctl.template | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ejabberdctl.template b/src/ejabberdctl.template index 29e298988..931b10236 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 | grep -v grep && { + ps ux | grep -v grep | grep -q $ERLANG_NODE && { echo "ejabberd is already running." exit 4 } || {