blob: cbeac7ab8d2daad84ce0b1e4f41ff0cdde504411 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
#!/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=`set_rcvar`
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"
|