From 51379c399796ad52557e3c2e131b0936b7774b87 Mon Sep 17 00:00:00 2001 From: iSecloud <869820505@qq.com> Date: Sat, 14 Sep 2024 19:27:05 +0800 Subject: [PATCH] =?UTF-8?q?fix(backend):=20=E8=B0=83=E6=95=B4dbha=E8=84=9A?= =?UTF-8?q?=E6=9C=AC=20#6962?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../backend/flow/utils/cloud/script_template/dbha_template.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dbm-ui/backend/flow/utils/cloud/script_template/dbha_template.py b/dbm-ui/backend/flow/utils/cloud/script_template/dbha_template.py index 055d9e22b7..ebd2371324 100644 --- a/dbm-ui/backend/flow/utils/cloud/script_template/dbha_template.py +++ b/dbm-ui/backend/flow/utils/cloud/script_template/dbha_template.py @@ -319,9 +319,9 @@ echo -e " # 检查进程是否存在 is_process_running() { - ps aux | grep {{dbha_type}} | grep -v grep | awk '{print \$2}' > /dev/null + ps aux | grep {{dbha_conf}} | grep -v grep | awk '{print \$2}' > /dev/null } -if is_process_running; then +if ! is_process_running; then echo "Process {{dbha_type}} is not running. Restarting..." cd /usr/local/bkdb/dbha/{{dbha_type}} # 启动进程的命令