监控到MySQL已停止,已执行重启计划 pgrep -x mysqld &> /dev/null if [ $? -ne 0 ]; then bash /www/server/panel/script/rememory.sh && /etc/init.d/mysqld start echo "监控到MySQL已停止,已执行重启计划,时间:$(date '+%Y-%m-%d %H:%M:%S')" >> /www/mysql_error.log fi