public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in net-misc/mDNSResponder/files: mDNSResponderPosix.init.d mdnsd.init.d dnsextd.init.d
@ 2011-10-23 18:15 Lars Wendler (polynomial-c)
  0 siblings, 0 replies; only message in thread
From: Lars Wendler (polynomial-c) @ 2011-10-23 18:15 UTC (permalink / raw
  To: gentoo-commits

polynomial-c    11/10/23 18:15:50

  Modified:             mDNSResponderPosix.init.d mdnsd.init.d
                        dnsextd.init.d
  Log:
  Removed bashisms from init scripts (bug #260155) and replaced deprecated opts variable
  
  (Portage version: 2.2.0_alpha70/cvs/Linux x86_64)

Revision  Changes    Path
1.2                  net-misc/mDNSResponder/files/mDNSResponderPosix.init.d

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/mDNSResponder/files/mDNSResponderPosix.init.d?rev=1.2&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/mDNSResponder/files/mDNSResponderPosix.init.d?rev=1.2&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/mDNSResponder/files/mDNSResponderPosix.init.d?r1=1.1&r2=1.2

Index: mDNSResponderPosix.init.d
===================================================================
RCS file: /var/cvsroot/gentoo-x86/net-misc/mDNSResponder/files/mDNSResponderPosix.init.d,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- mDNSResponderPosix.init.d	27 Aug 2005 16:46:45 -0000	1.1
+++ mDNSResponderPosix.init.d	23 Oct 2011 18:15:50 -0000	1.2
@@ -1,9 +1,9 @@
 #!/sbin/runscript
-# Copyright 1999-2005 Gentoo Foundation
+# Copyright 1999-2011 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/mDNSResponder/files/mDNSResponderPosix.init.d,v 1.1 2005/08/27 16:46:45 greg_g Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/mDNSResponder/files/mDNSResponderPosix.init.d,v 1.2 2011/10/23 18:15:50 polynomial-c Exp $
 
-opts="${opts} reload debug"
+extra_started_commands="reload debug"
 
 depend() {
 	need mdnsd
@@ -32,12 +32,12 @@
 
 reload() {
 	ebegin "Reloading mDNSResponderPosix"
-	kill -HUP `cat /var/run/mDNSResponderPosix.pid` >&/dev/null
+	kill -HUP `cat /var/run/mDNSResponderPosix.pid` >/dev/null 2>&1
 	eend $? "Failed to reload mDNSResponderPosix"
 }
 
 debug() {
 	ebegin "Changing verbosity of mDNSResponderPosix"
-	kill -USR1 `cat /var/run/mDNSResponderPosix.pid` >&/dev/null
+	kill -USR1 `cat /var/run/mDNSResponderPosix.pid` >/dev/null 2>&1
 	eend $? "Failed to change verbosity"
 }



1.3                  net-misc/mDNSResponder/files/mdnsd.init.d

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/mDNSResponder/files/mdnsd.init.d?rev=1.3&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/mDNSResponder/files/mdnsd.init.d?rev=1.3&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/mDNSResponder/files/mdnsd.init.d?r1=1.2&r2=1.3

Index: mdnsd.init.d
===================================================================
RCS file: /var/cvsroot/gentoo-x86/net-misc/mDNSResponder/files/mdnsd.init.d,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- mdnsd.init.d	27 Aug 2005 16:46:45 -0000	1.2
+++ mdnsd.init.d	23 Oct 2011 18:15:50 -0000	1.3
@@ -1,9 +1,9 @@
 #!/sbin/runscript
-# Copyright 1999-2005 Gentoo Foundation
+# Copyright 1999-2011 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/mDNSResponder/files/mdnsd.init.d,v 1.2 2005/08/27 16:46:45 greg_g Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/mDNSResponder/files/mdnsd.init.d,v 1.3 2011/10/23 18:15:50 polynomial-c Exp $
 
-opts="${opts} reload dump"
+extra_started_commands="reload dump"
 
 depend() {
 	after net
@@ -25,12 +25,12 @@
 
 reload() {
 	ebegin "Reloading mdnsd"
-	kill -HUP `cat /var/run/mdnsd.pid` >&/dev/null
+	kill -HUP `cat /var/run/mdnsd.pid` >/dev/null 2>&1
 	eend $? "Failed to reload mdnsd"
 }
 
 dump() {
 	ebegin "Dump mdnsd state to logs"
-	kill -USR1 `cat /var/run/mdnsd.pid` >&/dev/null
+	kill -USR1 `cat /var/run/mdnsd.pid` >/dev/null 2>&1
 	eend $? "Failed to dump mdnsd state"
 }



1.2                  net-misc/mDNSResponder/files/dnsextd.init.d

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/mDNSResponder/files/dnsextd.init.d?rev=1.2&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/mDNSResponder/files/dnsextd.init.d?rev=1.2&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/mDNSResponder/files/dnsextd.init.d?r1=1.1&r2=1.2

Index: dnsextd.init.d
===================================================================
RCS file: /var/cvsroot/gentoo-x86/net-misc/mDNSResponder/files/dnsextd.init.d,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- dnsextd.init.d	27 Aug 2005 16:46:45 -0000	1.1
+++ dnsextd.init.d	23 Oct 2011 18:15:50 -0000	1.2
@@ -1,9 +1,9 @@
 #!/sbin/runscript
-# Copyright 1999-2005 Gentoo Foundation
+# Copyright 1999-2011 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/mDNSResponder/files/dnsextd.init.d,v 1.1 2005/08/27 16:46:45 greg_g Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/mDNSResponder/files/dnsextd.init.d,v 1.2 2011/10/23 18:15:50 polynomial-c Exp $
 
-opts="${opts} dump"
+extra_started_commands"dump"
 
 depend() {
 	after named
@@ -31,6 +31,6 @@
 
 dump() {
 	ebegin "Dumping dnsextd lease table"
-	kill -INFO `cat /var/run/dnsextd.pid` >&/dev/null
+	kill -INFO `cat /var/run/dnsextd.pid` >/dev/null 2>&1
 	eend $? "Failed to dump dnsextd lease table"
 }






^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-10-23 18:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-23 18:15 [gentoo-commits] gentoo-x86 commit in net-misc/mDNSResponder/files: mDNSResponderPosix.init.d mdnsd.init.d dnsextd.init.d Lars Wendler (polynomial-c)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox