From a8165d1f9642e7d0d133437eed586e0343c0147e Mon Sep 17 00:00:00 2001 From: xfwduke Date: Fri, 22 Nov 2024 07:27:39 +0800 Subject: [PATCH] =?UTF-8?q?fix(mysql):=20mysql-crond=20pid=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E5=92=8C=E5=AE=9E=E9=99=85pid=E4=B8=8D=E4=B8=80?= =?UTF-8?q?=E8=87=B4=E7=9A=84=E9=97=AE=E9=A2=98=20#8104?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mysql/db-tools/mysql-crond/mysql_crond_keep_alive.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dbm-services/mysql/db-tools/mysql-crond/mysql_crond_keep_alive.sh b/dbm-services/mysql/db-tools/mysql-crond/mysql_crond_keep_alive.sh index 9ae3420a27..59f956e975 100644 --- a/dbm-services/mysql/db-tools/mysql-crond/mysql_crond_keep_alive.sh +++ b/dbm-services/mysql/db-tools/mysql-crond/mysql_crond_keep_alive.sh @@ -13,7 +13,8 @@ function mysql_crond_is_alive() { print_log "mysql-crond process found, pid=${PID}" curl -XGET http://127.0.0.1:9999/entries 1>/dev/null 2>&1 if [ $? -eq 0 ];then - print_log "connect mysql-crond success" + echo $PID > /home/mysql/mysql-crond/mysql-crond.pid + print_log "connect mysql-crond $PID success" return 0 else print_log "connect mysql-crond failed, kill pid=${PID}"