Page tree

Welcome to FreeSoftwareServers Confluence Wiki

Skip to end of metadata
Go to start of metadata
#!/bin/bash

sleep 30s

success="$(service mysql status | grep SUCCESS)"

while [ -n "$success" ];do

sleep 5s

success="$(service mysql status | grep SUCCESS)"

done

if [ -z "$success" ]; then
pcs cluster stop

echo "$HOSTNAME was part of the PaceMaker HA Cluster for Virtual_IP, but SQL wasn't running. Please check SQL Cluster" | mail -s "SQL Cluster - Floating IP - Problem Detected" freesoftwareservers@gmail.com

fi


nano /usr/local/bin/sql_ip_check.sh
chmod +x /usr/local/bin/sql_ip_check.sh
  • No labels