Thu Oct 15 16:47:28 2015 UTC ()
Make mdnsd start before NETWORKING and require staticroute, mountcritlocal
and networking.
Fixes PR install/43313.


(roy)
diff -r1.2 -r1.3 src/etc/rc.d/mdnsd

cvs diff -r1.2 -r1.3 src/etc/rc.d/mdnsd (expand / switch to unified diff)

--- src/etc/rc.d/mdnsd 2010/01/23 17:44:44 1.2
+++ src/etc/rc.d/mdnsd 2015/10/15 16:47:28 1.3
@@ -1,20 +1,21 @@ @@ -1,20 +1,21 @@
1#!/bin/sh 1#!/bin/sh
2# 2#
3# $NetBSD: mdnsd,v 1.2 2010/01/23 17:44:44 drochner Exp $ 3# $NetBSD: mdnsd,v 1.3 2015/10/15 16:47:28 roy Exp $
4# 4#
5 5
6# PROVIDE: mdnsd 6# PROVIDE: mdnsd
7# REQUIRE: SERVERS 7# REQUIRE: network mountcritlocal staticroute
 8# BEFORE: NETWORKING
8 9
9$_rc_subr_loaded . /etc/rc.subr 10$_rc_subr_loaded . /etc/rc.subr
10 11
11name="mdnsd" 12name="mdnsd"
12rcvar=$name 13rcvar=$name
13command="/usr/sbin/$name" 14command="/usr/sbin/$name"
14pidfile="/var/run/mdnsd/${name}.pid" 15pidfile="/var/run/mdnsd/${name}.pid"
15start_precmd="mdnsd_precmd" 16start_precmd="mdnsd_precmd"
16 17
17mdnsd_precmd() 18mdnsd_precmd()
18{ 19{
19 if [ ! -d /var/run/mdnsd ]; then 20 if [ ! -d /var/run/mdnsd ]; then
20 mkdir -p -m 755 /var/run/mdnsd 21 mkdir -p -m 755 /var/run/mdnsd