78
78
pidfile=`mysqld_get_param pid-file`
79
79
if [ -f "$pidfile" ] && ps `cat $pidfile` >/dev/null 2>&1; then ps_alive=1; fi
81
81
if [ "$1" = "check_alive" -a $ping_alive = 1 ] ||
82
82
[ "$1" = "check_dead" -a $ping_alive = 0 -a $ps_alive = 0 ]; then