summaryrefslogtreecommitdiff
path: root/net/openmdns/files/mdnsd.in
blob: d3443b7b91ac28ca96ef17ca31a9b6a4678f8ebc (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
#!/bin/sh

# PROVIDE: mdnsd
# REQUIRE: NETWORKING
# BEFORE:  DAEMON
# KEYWORD: shutdown
#
# Add the following lines to /etc/rc.conf to enable this service:
#
# mdnsd_enable (bool):	Set it to YES to enable mdnsd(8) on startup.
#			Default: NO
# mdnsd_flags (string):	Arguments passed to mdnsd(8) such as the list of
#			network interfaces to listen on e.g., "em0 fxp0".
#			Default: lo0 (no network exposure)

. /etc/rc.subr

name="mdnsd"
desc="%%COMMENT%%"
rcvar="${name}_enable"
command="%%PREFIX%%/sbin/${name}"
extra_commands="reload"

: ${mdnsd_enable:="NO"}
: ${mdnsd_flags:="lo0"}

load_rc_config $name
run_rc_command "$1"