Bug 44323

Summary: The rc start script is wrong
Product: [Retired] Red Hat Linux Reporter: hjl
Component: ypbindAssignee: Florian La Roche <laroche>
Status: CLOSED DUPLICATE QA Contact: Aaron Brown <abrown>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.1   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2001-06-12 20:19:55 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
A patch none

Description hjl 2001-06-12 20:19:13 UTC
The curent one has:
 
       pid=`pidofproc ypbind`
        if [ -n "$pid" ]; then
          echo -n $"Listening for an NIS domain server."
          times=1
          until ypwhich > /dev/null 2>&1 || [ "$times" = "3" ]
          do
             RETVAL=$?
             echo -n "."
             times=$[$times+1]
          done
        fi

It has several problems:

1. If first time ypwhich failes, RETVAL will always be non-zero. 
2. There is no sleep in bewteen. On my network, it may take up to
15 seconds from starting ypbind to working ypwhich.

Comment 1 hjl 2001-06-12 20:19:52 UTC
Created attachment 20887 [details]
A patch

Comment 2 hjl 2001-06-19 20:57:38 UTC

*** This bug has been marked as a duplicate of 37463 ***