Added NISTIMEOUT variable to init scrip (bz 196078)

This commit is contained in:
Steve Dickson 2006-07-18 13:42:15 +00:00
parent 858ee9a1f3
commit c06376c44f
2 changed files with 7 additions and 2 deletions

View File

@ -19,6 +19,8 @@ OTHER_YPBIND_OPTS=""
. /etc/sysconfig/network
[ -z "$NISTIMEOUT" ] && NISTIMEOUT=20
# Check that networking is configured.
[ ${NETWORKING} = "no" ] && exit 0
@ -42,7 +44,7 @@ start() {
# even when we are really not bound yet to a server, and then things
# that need NIS fail.
echo -n $"Listening for an NIS domain server."
for (( times = 1; times < 20; times++ )); do
for (( times = 1; times < $NISTIMEOUT; times++ )); do
/usr/sbin/rpcinfo -p | LC_ALL=C fgrep -q ypbind && ypwhich > /dev/null 2>&1
RETVAL=$?
if [ $RETVAL -eq 0 ]; then

View File

@ -1,7 +1,7 @@
Summary: The NIS daemon which binds NIS clients to an NIS domain.
Name: ypbind
Version: 1.19
Release: 0.1
Release: 0.2
License: GPL
Group: System Environment/Daemons
Source0: ftp://ftp.us.kernel.org/pub/linux/utils/net/NIS/ypbind-mt-%{PACKAGE_VERSION}.tar.bz2
@ -80,6 +80,9 @@ exit 0
%doc README NEWS
%changelog
* Tue Jul 18 2006 Steve Dickson <steved@redhat.com> - 3:1.19-0.2
- Added NISTIMEOUT variable to init scrip (bz 196078)
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 3:1.19-0.1
- rebuild