#!/bin/sh
#
# $FreeBSD: ports/dns/dns_balance/files/dns_balance.sh.in,v 1.3 2006/08/12 03:56:54 rafan Exp $
#
# PROVIDE: dns_balance
# REQUIRE: DAEMON

. /etc/rc.subr

name=dns_balance
rcvar=`set_rcvar`

load_rc_config ${name}
: ${dns_balance_enable="NO"}
: ${dns_balance_logfile="/var/log/${name}.log"}
: ${dns_balance_pidfile="/var/log/${name}.pid"}
: ${dns_balance_flags=""}

command="/usr/local/sbin/${name}"
command_args="-l ${dns_balance_logfile} -p ${dns_balance_pidfile}"
command_interpreter=/usr/local/bin/ruby18
pidfile=${dns_balance_pidfile}

run_rc_command "$1"


syntax highlighted by Code2HTML, v. 0.9.1