#!/bin/sh
#
# mysqlshow command alternative for wembin to return status of database

PIDFILE=/tmp/mysqld.pid
PID=`cat $PIDFILE`
PS=`/bin/ps | /bin/grep $PID | /bin/grep -v "grep"`

if [ -z "$PS" ] ; then
    exit 1
fi
exit 0