#!/bin/bash

RUNLEVEL=3
NEEDS="+network +remote_fs"

. /etc/init.d/smgl_init

case  $1  in
    start)  echo   "Starting chrooted Berkley Internet Name Domain"
            loadproc named -u bind -t /etc/bind
            ;;

   reload)  echo   "Reloading Berkley Internet Name Domain"
            reloadproc named SIGHUP
            ;;

  restart)  $0 stop
            $0 start
            ;;

     stop)  echo    "Stopping Berkley Internet Name Domain"
            loadproc rndc stop
            ;;

   status)  statusproc named
            ;;

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