packages/mdnsreposnder: various changes:
[openwrt/svn-archive/archive.git] / net / mdnsresponder / files / mDNSResponder.init
index 9702061..87f9e90 100644 (file)
@@ -1,14 +1,14 @@
 #!/bin/sh /etc/rc.common
-# Copyright (C) 2009 OpenWrt.org
+# Copyright (C) 2009-2011 OpenWrt.org
 
-START=60
+START=61
+
+SERVICE_USE_PID=1
 
 start() {
-       /usr/sbin/mDNSResponderPosix -b -f /etc/mdns.conf
-       /usr/sbin/mdnsd
+       service_start /usr/bin/mDNSResponder -b -f /etc/mDNSResponder.conf
 }
 
 stop() {
-       killall mDNSResponderPosix 2> /dev/null
-       killall mdnsd 2> /dev/null
+       service_stop /usr/bin/mDNSResponder
 }