net-dns/pdns-recursor: Replace bashisms in init script, bug #605694
authorSven Wegener <swegener@gentoo.org>
Sat, 14 Jan 2017 19:11:32 +0000 (19:11 +0000)
committerSven Wegener <swegener@gentoo.org>
Sat, 14 Jan 2017 19:13:51 +0000 (19:13 +0000)
Package-Manager: Portage-2.3.0, Repoman-2.3.1

net-dns/pdns-recursor/files/pdns-recursor

index f114d5be4a2dae22f0ffc1c89c84519a478a15b3..8300b708fd921c12327a6d50257fc8cde7faba5f 100644 (file)
@@ -1,5 +1,5 @@
 #!/sbin/openrc-run
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
@@ -11,18 +11,18 @@ depend() {
 
 start() {
        ebegin "Starting PowerDNS Recursor"
-       /usr/sbin/pdns_recursor --daemon=yes &>/dev/null
+       /usr/sbin/pdns_recursor --daemon=yes >/dev/null 2>&1
        eend $?
 }
 
 stop() {
        ebegin "Stopping PowerDNS Recursor"
-       /usr/bin/rec_control quit &>/dev/null
+       /usr/bin/rec_control quit >/dev/null 2>&1
        eend $?
 }
 
 ping() {
        ebegin "Pinging PowerDNS Recursor"
-       /usr/bin/rec_control ping &>/dev/null
+       /usr/bin/rec_control ping >/dev/null 2>&1
        eend $?
 }