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 } || {