blob: 6cc93eb77595d5d9ab284cac17583176a7c486f5 (
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: dnsdist
# REQUIRE: NETWORKING DAEMON
# KEYWORD: shutdown
#
# Add the following to /etc/rc.conf to enable dnsdist:
#
# dnsdist_enable="YES"
#
. /etc/rc.subr
name="dnsdist"
rcvar="dnsdist_enable"
load_rc_config ${name}
: ${dnsdist_enable:="NO"}
: ${dnsdist_pidfile:=/var/run/${name}/pid}
command=/usr/local/sbin/${name}
command_args="-l 127.0.0.1:53"
run_rc_command "$1"
|