[ypbind/f15] Fixed init script to handle long rpcinfo requests (rhbz#624688)
Jan Horak
hhorak at fedoraproject.org
Tue Nov 15 08:40:31 UTC 2011
commit d9fd11fbb1ef633f82b6c7fe2682f03ff7bbac25
Author: Honza HorĂ¡k <hhorak at redhat.com>
Date: Tue Nov 15 09:40:23 2011 +0100
Fixed init script to handle long rpcinfo requests
(rhbz#624688)
ypbind.init | 4 ++--
ypbind.spec | 6 +++++-
2 files changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/ypbind.init b/ypbind.init
index c42c077..54c1a08 100755
--- a/ypbind.init
+++ b/ypbind.init
@@ -103,10 +103,10 @@ start() {
# the following fixes problems with the init scripts continuing
# even when we are really not bound yet to a server, and then things
# that need NIS fail.
- timeout=10
+ timeout=$NISTIMEOUT
firsttime=1
SECONDS=0
- while [ $SECONDS -lt $timeout ]; do
+ while [ $SECONDS -lt $timeout ] || [ $firsttime -eq 1 ] ; do
if /usr/sbin/rpcinfo -p | LC_ALL=C fgrep -q ypbind
then
if [ $firsttime -eq 1 ]; then
diff --git a/ypbind.spec b/ypbind.spec
index 34fb0c5..c9578de 100644
--- a/ypbind.spec
+++ b/ypbind.spec
@@ -1,7 +1,7 @@
Summary: The NIS daemon which binds NIS clients to an NIS domain
Name: ypbind
Version: 1.32
-Release: 8%{?dist}.1
+Release: 8%{?dist}.2
License: GPLv2
Group: System Environment/Daemons
Source0: ftp://ftp.us.kernel.org/pub/linux/utils/net/NIS/ypbind-mt-%{version}.tar.bz2
@@ -88,6 +88,10 @@ fi
%doc README NEWS COPYING
%changelog
+* Tue Nov 15 2011 Honza Horak <hhorak at redhat.com> - 3:1.32-8.fc15.2
+- Fixed init script to handle long rpcinfo requests
+ (rhbz#624688)
+
* Fri Apr 29 2011 Honza Horak <hhorak at redhat.com> - 3:1.32-8.fc15.1
- Removed NM_DBUS_VPN_SIGNAL_STATE_CHANGE, use own constant
NM_DBUS_SIGNAL_STATE_CHANGED.
More information about the scm-commits
mailing list