#!/bin/sh
### BEGIN INIT INFO
# Provides:          testone
# Required-Start:    $ALL
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# X-Interactive:     false
# Short-Description: Example init script
# Description:       Start/stop an example script
### END INIT INFO

DESC="test script"
NAME=testone
#DAEMON=

do_start()
{
   sh /opt/hbase/bin/start-hbase.sh
}

do_stop()
{
   sh /opt/hbase/bin/stop-hbase.sh
}


case "$1" in
   start)
     do_start
     ;;
   stop)
     do_stop
     ;;
esac

exit 0
