summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wendler <polynomial-c@gentoo.org>2011-03-28 14:00:21 +0000
committerLars Wendler <polynomial-c@gentoo.org>2011-03-28 14:00:21 +0000
commitdb63e9877fcd26213727074243067f0821ee4169 (patch)
treeee0fba50072db73f6ffa7b2b1bc139d7bffd598a /net-dns/pdnsd/files
parentDrop 2.7 versions (diff)
downloadhistorical-db63e9877fcd26213727074243067f0821ee4169.tar.gz
historical-db63e9877fcd26213727074243067f0821ee4169.tar.bz2
historical-db63e9877fcd26213727074243067f0821ee4169.zip
Fixed broken pdnsd-online init script (result of bug #349335)
Package-Manager: portage-2.2.0_alpha29/cvs/Linux x86_64
Diffstat (limited to 'net-dns/pdnsd/files')
-rw-r--r--net-dns/pdnsd/files/pdnsd.online.114
1 files changed, 5 insertions, 9 deletions
diff --git a/net-dns/pdnsd/files/pdnsd.online.1 b/net-dns/pdnsd/files/pdnsd.online.1
index 79e7a41e96fb..393ebf589ebd 100644
--- a/net-dns/pdnsd/files/pdnsd.online.1
+++ b/net-dns/pdnsd/files/pdnsd.online.1
@@ -1,25 +1,21 @@
#!/sbin/runscript
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-dns/pdnsd/files/pdnsd.online.1,v 1.1 2011/03/27 17:31:44 flameeyes Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-dns/pdnsd/files/pdnsd.online.1,v 1.2 2011/03/28 14:00:21 polynomial-c Exp $
depend() {
need pdnsd
}
wait_for_socket() {
- local i pdnsd_socket="/var/cache/pdnsd/pdnsd.status"
- while [ ! -S "${pdnsd_socket}" -a $i -lt 10 ]; do
+ local i=0 pdnsd_socket="/var/cache/pdnsd/pdnsd.status"
+ while [ $i -lt 10 ]; do
+ [ -S "${pdnsd_socket}" ] && return 0
+ i=$(($i+1))
sleep 1s
- : $((i++))
done
- if [ ! -S "${pdnsd_socket}" ]; then
- eerror "${pdnsd_socket} socket is missing."
return 1
- fi
-
- return 0
}
start() {