aboutsummaryrefslogtreecommitdiffstats
path: root/dns/dnsmasq/files/dnsmasq.sh
blob: c723b1ec33611ce047c39344abc59a43ee44acca (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
#! /bin/sh
#
#
# PROVIDE: dnsmasq
# REQUIRE: DAEMON NETWORKING SERVERS
# KEYWORD: FreeBSD
#
# Add the following line to /etc/rc.conf to enable dnsmasq:
#
# dnsmasq_enable="YES"
#

# override these variables in /etc/rc.conf
dnsmasq_enable=NO


. %%RC_SUBR%%

name=dnsmasq
rcvar=$(set_rcvar)

command=%%PREFIX%%/sbin/${name}
pidfile=/var/run/${name}.pid
required_files=${dnsmasq_conf}
#start_precmd=${name}_precmd

load_rc_config ${name}
run_rc_command "$1"