You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by zy...@apache.org on 2024/02/19 03:16:40 UTC

(doris) branch master updated: [Bug] doris cloud ms does not start even though process is not running (#30946)

This is an automated email from the ASF dual-hosted git repository.

zykkk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/master by this push:
     new 69c63423f82 [Bug] doris cloud ms does not start even though process is not running (#30946)
69c63423f82 is described below

commit 69c63423f82f72f604407556fcdae66f77b1baf1
Author: Rohit Satardekar <ro...@yahoo.com>
AuthorDate: Mon Feb 19 08:46:33 2024 +0530

    [Bug] doris cloud ms does not start even though process is not running (#30946)
---
 cloud/script/start.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cloud/script/start.sh b/cloud/script/start.sh
index a5c9658aa7f..7c4406a3a75 100644
--- a/cloud/script/start.sh
+++ b/cloud/script/start.sh
@@ -45,7 +45,7 @@ process=doris_cloud
 if [[ -f "${DORIS_HOME}/bin/${process}.pid" ]]; then
     pid=$(cat "${DORIS_HOME}/bin/${process}.pid")
     if [[ "${pid}" != "" ]]; then
-        if ! pgrep -f "${pid}" 2>&1 | grep doris_cloud >/dev/null 2>&1; then
+        if kill -0 "$(cat "${DORIS_HOME}/bin/${process}.pid")" >/dev/null 2>&1; then
             echo "pid file existed, ${process} have already started, pid=${pid}"
             exit 1
         fi


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org