freebsd-ports/dns/dns_balance/files/dns_balance.in
Doug Barton 9aac569eaa Move the rc.d scripts of the form *.sh.in to *.in
Where necessary add $FreeBSD$ to the file

No PORTREVISION bump necessary because this is a no-op
2012-08-05 23:19:36 +00:00

27 lines
587 B
Bash

#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: dns_balance
# REQUIRE: DAEMON
# Add the following line to /etc/rc.conf to enable dns_balance
# dns_balance_enable="YES"
# dns_balance_flags="<set as needed>"
. /etc/rc.subr
name=dns_balance
rcvar=dns_balance_enable
load_rc_config ${name}
: ${dns_balance_enable="NO"}
: ${dns_balance_logfile="/var/log/${name}.log"}
: ${dns_balance_pidfile="/var/log/${name}.pid"}
command="%%PREFIX%%/sbin/${name}"
command_args="-l ${dns_balance_logfile} -p ${dns_balance_pidfile}"
command_interpreter=%%RUBY%%
pidfile=${dns_balance_pidfile}
run_rc_command "$1"