监控数据库是否正常运行,如遇停止可在设定时间内恢复
pgrep -x mysqld &> /dev/null if [ $? -ne 0 ];then bash /www/server/panel/script/rememory.sh /etc/init.d/mysqld start fi