summaryrefslogtreecommitdiff
path: root/dns/adsuck/files/adsuck.in
blob: 11827e4fec06c29acf2bdb2f75985c63f26b64ac (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
#!/bin/sh

# PROVIDE: adsuck
# REQUIRE: DAEMON
# KEYWORD: shutdown
#
# Add the following lines to /etc/rc.conf.local or /etc/rc.conf
# to enable adsuck:
#
# adsuck_enable (bool):   Set to NO by default.

. /etc/rc.subr

name="adsuck"
rcvar=adsuck_enable

command=%%PREFIX%%/sbin/${name}
extra_commands="reload"

load_rc_config $name

: ${adsuck_enable="NO"}
: ${adsuck_flags="-c /var/adsuck -f resolv.conf -r regex Hosts.blc Hosts.pub Hosts.rsk Hosts.trc hosts.small hosts.yoyo"}

run_rc_command "$1"