summaryrefslogtreecommitdiff
path: root/dns/dnsproxy/files/dnsproxy.in
blob: 1ac6ce1e33ab4e3b271ba5bfd4b218922712ed9c (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
28
29
30
#!/bin/sh

# PROVIDE: dnsproxy
# REQUIRE: NETWORKING SERVERS
# BEFORE:  DAEMON
# KEYWORD: shutdown

#
# Define these dnsproxy_* variables in one of these files:
#       /etc/rc.conf
#       /etc/rc.conf.local
#
# dnsproxy_enable="YES"		# Run the dnsproxy(1) daemon (YES/NO).
# dnsproxy_flags=""		# Extra flags for dnsproxy(1) (if enabled).
#
# DO NOT CHANGE THESE DEFAULT VALUES HERE
#
dnsproxy_enable=${dnsproxy_enable:-"NO"}
: ${dnsproxy_svcj_options:="net_basic"}
command_args=${dnsproxy_flags:-"-c %%ETCDIR%%/dnsproxy.conf -d"}

. /etc/rc.subr

name="dnsproxy"
rcvar=dnsproxy_enable

command="%%PREFIX%%/sbin/dnsproxy"

load_rc_config $name
run_rc_command "$1"