#!/bin/sh
#
# start/stop the DNS prxy dnrd
# This dnrd is started here in order to make /etc/host available
# via DNS 
#
# processname: dnrd
# Source function library.
. /etc/rc.d/init.d/functions

PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/local/sbin:/usr/local/bin
export PATH
[ -x /usr/sbin/dnrd ] || exit 0
RETVAL=0
# See how we were called.
case "$1" in
  start)
        # Start daemons.
        gprintf "Starting dnrd: "
        daemon dnrd
	RETVAL=$?
        ;;
  stop)
        # Stop daemons.
        gprintf "Shutting down dnrd: "
	killproc dnrd
	RETVAL=$?
        ;;
  status)
	status dnrd
	RETVAL=$?
	;;
  restart|reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  *)
        gprintf "Usage: dnrd_rc {start|stop|restart|reload|status}\n"
        exit 1
esac

exit $RETVAL
