Skip to content

Commit

Permalink
fix(backend): 调整dbha脚本 TencentBlueKing#6962
Browse files Browse the repository at this point in the history
  • Loading branch information
iSecloud committed Sep 18, 2024
1 parent b79ae14 commit 51379c3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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}}
# 启动进程的命令
Expand Down

0 comments on commit 51379c3

Please sign in to comment.