Skip to content

Commit ae07581

Browse files
authored
Merge pull request Percona-Lab#53 from freyes/fix-52
monitor: if no process found according to the pidfile mysql is not running
2 parents f277145 + 16f3f77 commit ae07581

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

agents/mysql_monitor

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -545,6 +545,10 @@ mysql_monitor() {
545545
;;
546546

547547
esac
548+
else
549+
ocf_log $1 "MySQL is not running, but there is a pidfile"
550+
set_reader_attr 0
551+
set_writer_attr 0
548552
fi
549553
else
550554
ocf_log $1 "MySQL is not running"

0 commit comments

Comments
 (0)