#! /bin/sh

MYSQLDB=$1
USAGE="Usage: mysql-init-status MYSQLDBNAME"

#if no MYSQLDBname is provided return usage
if [[ "${MYSQLDB}" == "" ]]
then
   echo ${USAGE} >&2
   exit 1
fi

if [[ -x "/etc/e-smith/sql/init/$MYSQLDB" ]]
then
    /usr/bin/systemctl restart mysql.init.service
else
    exit 0
fi

