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

dataroaring pushed a commit to branch branch-4.0-preview
in repository https://gitbox.apache.org/repos/asf/doris.git

commit 0819d6f7d7864381a5f7ed526ae909fd589819ff
Author: deardeng <565620...@qq.com>
AuthorDate: Wed Apr 10 22:31:03 2024 +0800

    [fix](doris compose) Fix not show ms recycler .out log in cloud mode 
(#33489)
---
 docker/runtime/doris-compose/resource/init_cloud.sh | 17 ++++++++++++++++-
 1 file changed, 16 insertions(+), 1 deletion(-)

diff --git a/docker/runtime/doris-compose/resource/init_cloud.sh 
b/docker/runtime/doris-compose/resource/init_cloud.sh
index baa983aee95..78152b5330b 100644
--- a/docker/runtime/doris-compose/resource/init_cloud.sh
+++ b/docker/runtime/doris-compose/resource/init_cloud.sh
@@ -87,6 +87,19 @@ stop_cloud() {
     bash bin/stop.sh
 }
 
+wait_process() {
+    pid=""
+    for ((i = 0; i < 5; i++)); do
+        sleep 1s
+        pid=$(pgrep _cloud)
+        if [ -n "$pid" ]; then
+            break
+        fi
+    done
+
+    wait_pid $pid
+}
+
 main() {
     trap stop_cloud SIGTERM
 
@@ -98,7 +111,9 @@ main() {
 
     health_log "input args: $ARGS"
 
-    bash bin/start.sh $ARGS
+    bash bin/start.sh $ARGS --daemon
+
+    wait_process
 }
 
 main


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

Reply via email to