[Midnightbsd-cvs] src [6483] mdnsresponder for mDNSResponderPosix
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Wed Dec 11 22:02:01 EST 2013
Revision: 6483
http://svnweb.midnightbsd.org/src/?rev=6483
Author: laffer1
Date: 2013-12-11 22:02:00 -0500 (Wed, 11 Dec 2013)
Log Message:
-----------
mdnsresponder for mDNSResponderPosix
Modified Paths:
--------------
trunk/etc/rc.d/Makefile
trunk/etc/rc.d/mdnsd
Added Paths:
-----------
trunk/etc/rc.d/mdnsresponder
Property Changed:
----------------
trunk/etc/rc.d/Makefile
trunk/etc/rc.d/mdnsd
Modified: trunk/etc/rc.d/Makefile
===================================================================
--- trunk/etc/rc.d/Makefile 2013-12-12 02:57:33 UTC (rev 6482)
+++ trunk/etc/rc.d/Makefile 2013-12-12 03:02:00 UTC (rev 6483)
@@ -1,4 +1,4 @@
-# $MidnightBSD: src/etc/rc.d/Makefile,v 1.23 2013/01/09 04:58:21 laffer1 Exp $
+# $MidnightBSD$
.include <bsd.own.mk>
@@ -20,7 +20,8 @@
jail \
kadmind kerberos keyserv kld kldxref kpasswdd \
ldconfig local localpkg lockd lpd \
- mdnsd mixer motd mountcritlocal mountcritremote mountlate \
+ mdnsd mdnsresponder mixer motd \
+ mountcritlocal mountcritremote mountlate \
mdconfig mdconfig2 mountd moused mroute6d mrouted msgs \
named natd netif netoptions netwait \
newsyslog nfsclient nfscbd nfsd \
Property changes on: trunk/etc/rc.d/Makefile
___________________________________________________________________
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Modified: trunk/etc/rc.d/mdnsd
===================================================================
--- trunk/etc/rc.d/mdnsd 2013-12-12 02:57:33 UTC (rev 6482)
+++ trunk/etc/rc.d/mdnsd 2013-12-12 03:02:00 UTC (rev 6483)
@@ -9,7 +9,7 @@
. /etc/rc.subr
name="mdnsd"
-rcvar=`set_rcvar`
+rcvar=mdnsd_enable
command="/usr/sbin/${name}"
pidfile="/var/run/mDNSResponder.pid"
Property changes on: trunk/etc/rc.d/mdnsd
___________________________________________________________________
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Added: trunk/etc/rc.d/mdnsresponder
===================================================================
--- trunk/etc/rc.d/mdnsresponder (rev 0)
+++ trunk/etc/rc.d/mdnsresponder 2013-12-12 03:02:00 UTC (rev 6483)
@@ -0,0 +1,22 @@
+#!/bin/sh
+#
+# $MidnightBSD$
+
+# PROVIDE: mdnsresponder
+# REQUIRE: DAEMON
+# KEYWORD: shutdown
+
+. /etc/rc.subr
+
+name=mdnsresponder
+rcvar=mdnsresponder_enable
+
+load_rc_config $name
+
+: ${mdnsresponder_enable="NO"}
+: ${mdnsresponder_pidfile="/var/run/${name}.pid"}
+
+command="/usr/bin/mDNSResponderPosix"
+command_args="-b -P ${mdnsresponder_pidfile}"
+
+run_rc_command $*
More information about the Midnightbsd-cvs
mailing list