我在我的Ubuntu 14.04服务器上安装了monit,并将其configuration为使用monitrc中的以下configuration来监视mysql。
check process mysqld with pidfile /var/run/mysqld/mysqld.pid start program = "/etc/init.d/mysql start" stop program = "/etc/init.d/mysql stop"
现在来testing我closuresmysql用户
service mysql stop
Monit确实重启了服务器,但问题是当我像下面那样服务于mysql状态的时候
service mysql status
表明
mysql stop/waiting
但是当我这样做
ps -e | grep "mysql"
我看到mysqld服务正在运行。
任何想法,为什么服务MySQL状态不会显示我运行?
谢谢!