Fixed init script to handle long rpcinfo requests

(rhbz#624688)
This commit is contained in:
Honza Horák 2011-11-15 09:40:23 +01:00
parent 235e401634
commit d9fd11fbb1
2 changed files with 7 additions and 3 deletions

View File

@ -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

View File

@ -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@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@redhat.com> - 3:1.32-8.fc15.1
- Removed NM_DBUS_VPN_SIGNAL_STATE_CHANGE, use own constant
NM_DBUS_SIGNAL_STATE_CHANGED.