#!/bin/sh
#
# $FreeBSD: ports/dns/mydns/files/mydns.sh.in,v 1.2 2006/03/07 16:27:27 ale Exp $
#
# PROVIDE: mydns
# REQUIRE: DAEMON mysql postgresql
# KEYWORD: shutdown
#
# Add the following line to /etc/rc.conf to enable mydns:
# mydns_enable (bool): Set to "NO" by default.
# Set it to "YES" to enable MyDNS.
#
. /etc/rc.subr
name="mydns"
rcvar=`set_rcvar`
load_rc_config $name
: ${mydns_enable="NO"}
command="/usr/local/sbin/mydns"
command_args="-b"
pidfile="/var/run/mydns.pid"
required_files="/usr/local/etc/mydns.conf"
run_rc_command "$1"
syntax highlighted by Code2HTML, v. 0.9.1