aboutsummaryrefslogtreecommitdiff
path: root/dns/getdns/files/stubby.in
blob: 60b4ef4213a56c5b59a455286f9c204e03df7c26 (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
31
#!/bin/sh

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

#
# Add some of the following variables to /etc/rc.conf to configure stubby:
# stubby_enable (bool):	Set to "NO" by default.
#				Set it to "YES" to enable stubby.
# stubby_config (str):		Default "%%PREFIX%%/etc/stubby.conf"
#				Set it to the full path to the config file
#				that stubby will use during the automated
#				start-up.

. /etc/rc.subr

name="stubby"
rcvar=stubby_enable

load_rc_config $name

: ${stubby_enable="NO"}
: ${stubby_config="%%PREFIX%%/etc/stubby/stubby.yml"}

command="%%PREFIX%%/bin/stubby"
command_args="-g -C ${stubby_config}"

required_files=${stubby_config}
run_rc_command "$1"