Page tree

Welcome to FreeSoftwareServers Confluence Wiki

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

sqllog="/tmp/sql.status"
service mysql status >> "$sqllog"

success="$(cat $sqllog | grep SUCCESS)"

if [ -z "$success" ]; then
pcs cluster stop
fi
  • No labels