#!/bin/sh

IPTCMD=/usr/sbin/iptables 
IPT6CMD=/usr/sbin/ip6tables 

stop_service(){

	log_success_msg "MYSQL stopped"

}

start_service(){
	nohup /usr/local/mysql/bin/mariadbd-safe --user=mysql --datadir=/usr/local/mysql/data> /tmp/mysql.log 2>&1 &
	log_success_msg "MYSQL started"
}
. /lib/lsb/init-functions
case "${1}" in
   start)
      start_service;

      ;;

  stop)
      stop_service;
      ;;

   restart)
      ${0} stop
      sleep 1
      ${0} start
      ;;

   *)
      echo "Usage: ${0} {start|stop|restart}"
      exit 1
      ;;
esac

exit 0

# End network
