Skip to content

Commit

Permalink
fix(mysql): mysql-crond pid文件和实际pid不一致的问题 #8104
Browse files Browse the repository at this point in the history
  • Loading branch information
xfwduke committed Nov 21, 2024
1 parent 0c40355 commit a8165d1
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down

0 comments on commit a8165d1

Please sign in to comment.