#!/bin/bash #==============================================================================# # # DB-Check # #------------------------------------------------------------------------------# # # /etc/mysql/debian.cnf # # mysqladmin --defaults-file=/etc/mysql/debian.cnf ping # mysqld is alive # #==============================================================================# DB_STATUS=$(mysqladmin --defaults-file=/etc/mysql/debian.cnf ping); #echo " #DB_STATUS='${DB_STATUS}' #" if [ "${DB_STATUS}" = "mysqld is alive" ] then # An exit 0; else # Aus exit 1; fi