rpms/ypbind/devel ypbind.init,1.18,1.19 ypbind.spec,1.44,1.45
Steve Dickson (steved)
fedora-extras-commits at redhat.com
Fri Jan 11 22:28:51 UTC 2008
- Previous message (by thread): rpms/avrdude/devel avrdude-5.5.usbtiny.64bit.patch, NONE, 1.1 avrdude.spec, 1.4, 1.5
- Next message (by thread): rpms/virt-viewer/devel virt-viewer-0.0.2-hide-passwd.patch, NONE, 1.1 virt-viewer-0.0.2-window-title.patch, NONE, 1.1 virt-viewer.spec, 1.5, 1.6
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: steved
Update of /cvs/pkgs/rpms/ypbind/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv28324
Modified Files:
ypbind.init ypbind.spec
Log Message:
Fixed init script to wait for ypbind to come up. (bz 322101)
Index: ypbind.init
===================================================================
RCS file: /cvs/pkgs/rpms/ypbind/devel/ypbind.init,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -r1.18 -r1.19
--- ypbind.init 17 Sep 2007 13:03:39 -0000 1.18
+++ ypbind.init 11 Jan 2008 22:28:15 -0000 1.19
@@ -81,19 +81,31 @@
# 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=$NISTIMEOUT
+ timeout=10
+ failure=0
while [ $timeout -gt 0 ]; do
- /usr/sbin/rpcinfo -p | LC_ALL=C fgrep -q ypbind && \
+ if /usr/sbin/rpcinfo -p | LC_ALL=C fgrep -q ypbind
+ then
+ if [ $failure -eq 1 ]; then
+ # reset timeout
+ timeout=$NISTIMEOUT
+ failure=0
+ fi
/usr/bin/ypwhich > /dev/null 2>&1
- RETVAL=$?
- if [ $RETVAL -eq 0 ]; then
- break;
- fi
- echo -n "..."
- # ypwhich has a hardcode 15sec timeout
- # so subtract that from NISTIMEOUT to
- # to see of we should continue to wait
- timeout=`expr $timeout - 15`
+ RETVAL=$?
+ if [ $RETVAL -eq 0 ]; then
+ break;
+ fi
+ # ypwhich has a hardcode 15sec timeout
+ # so subtract that from NISTIMEOUT to
+ # to see of we should continue to wait
+ timeout=`expr $timeout - 15`
+ else # wait for ypbind to get started
+ sleep 2
+ timeout=`expr $timeout - 2`
+ failure=1
+ fi
+ echo -n "..."
done
if [ $RETVAL -eq 0 ]; then
logger -t ypbind \
Index: ypbind.spec
===================================================================
RCS file: /cvs/pkgs/rpms/ypbind/devel/ypbind.spec,v
retrieving revision 1.44
retrieving revision 1.45
diff -u -r1.44 -r1.45
--- ypbind.spec 17 Sep 2007 13:03:39 -0000 1.44
+++ ypbind.spec 11 Jan 2008 22:28:15 -0000 1.45
@@ -1,7 +1,7 @@
Summary: The NIS daemon which binds NIS clients to an NIS domain.
Name: ypbind
Version: 1.20.4
-Release: 2%{?dist}
+Release: 3%{?dist}
License: GPL
Group: System Environment/Daemons
Source0: ftp://ftp.us.kernel.org/pub/linux/utils/net/NIS/ypbind-mt-%{PACKAGE_VERSION}.tar.bz2
@@ -91,6 +91,9 @@
%doc README NEWS
%changelog
+* Fri Jan 11 2008 Steve Dickson <steved at redhat.com> - 3:1.20.4-3
+- Fixed init script to wait for ypbind to come up. (bz 322101)
+
* Mon Sep 17 2007 Steve Dickson <steved at redhat.com> - 3:1.20.4-2
- Fixed a couple of typos in initscript (bz 281951)
- Previous message (by thread): rpms/avrdude/devel avrdude-5.5.usbtiny.64bit.patch, NONE, 1.1 avrdude.spec, 1.4, 1.5
- Next message (by thread): rpms/virt-viewer/devel virt-viewer-0.0.2-hide-passwd.patch, NONE, 1.1 virt-viewer-0.0.2-window-title.patch, NONE, 1.1 virt-viewer.spec, 1.5, 1.6
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the fedora-extras-commits
mailing list