Sync usage with man page.
[netbsd-mini2440.git] / etc / rc.d / mdnsd
blob81ceed454accda06849e3ecde366aa7b718050c2
1 #!/bin/sh
3 # $NetBSD$
6 # PROVIDE: mdnsd
7 # REQUIRE: SERVERS
9 $_rc_subr_loaded . /etc/rc.subr
11 name="mdnsd"
12 rcvar=$name
13 command="/usr/sbin/$name"
14 pidfile="/var/run/mdnsd/${name}.pid"
15 start_precmd="mdnsd_precmd"
17 mdnsd_precmd()
19 if [ ! -d /var/run/mdns ]; then
20 mkdir -p -m 755 /var/run/mdnsd
22 chown _mdnsd:_mdnsd /var/run/mdnsd
25 load_rc_config $name
26 run_rc_command "$1"