From c06376c44fc358d481fcaf961d6fbe9f9dc29b55 Mon Sep 17 00:00:00 2001 From: Steve Dickson Date: Tue, 18 Jul 2006 13:42:15 +0000 Subject: [PATCH] Added NISTIMEOUT variable to init scrip (bz 196078) --- ypbind.init | 4 +++- ypbind.spec | 5 ++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ypbind.init b/ypbind.init index d3d5973..65848c8 100755 --- a/ypbind.init +++ b/ypbind.init @@ -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 diff --git a/ypbind.spec b/ypbind.spec index d199051..e6701e6 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.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 - 3:1.19-0.2 +- Added NISTIMEOUT variable to init scrip (bz 196078) + * Wed Jul 12 2006 Jesse Keating - 3:1.19-0.1 - rebuild