#!/bin/bash #/etc/keepalived/check_mysql.sh #chmod u+x /etc/keepalived/check_mysql.sh if [ `ps -ef|grep -w "$0"|grep -v "grep"|wc -l` -gt 2 ];then exit 0 fi
#!/bin/bash #/etc/keepalived/check_mysql.sh #chmod u+x /etc/keepalived/check_mysql.sh if [ `ps -ef|grep -w "$0"|grep -v "grep"|wc -l` -gt 2 ];then exit 0 fi