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

net-dns/pdns/files/pdns

index 8ff67538ab3e5ab51f7c31724b2fb266d8ff0667..4ffa062e019b20773675c8fb87dbd995d32fdfaa 100644 (file)
@@ -1,5 +1,5 @@
 #!/sbin/openrc-run
-# Copyright 1999-2011 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
@@ -32,13 +32,13 @@ start() {
 
 stop() {
        ebegin "Stopping PowerDNS (${PDNS_INSTANCE})"
-       /usr/bin/pdns_control ${PDNS_CONFIG} quit &>/dev/null
+       /usr/bin/pdns_control ${PDNS_CONFIG} quit >/dev/null 2>&1
        eend $?
 }
 
 reload() {
        ebegin "Reloading PowerDNS (${PDNS_INSTANCE})"
-       /usr/bin/pdns_control ${PDNS_CONFIG} cycle &>/dev/null
+       /usr/bin/pdns_control ${PDNS_CONFIG} cycle >/dev/null 2>&1
        eend $?
 }