Bug 44323 - The rc start script is wrong
Summary: The rc start script is wrong
Keywords:
Status: CLOSED DUPLICATE of bug 37463
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: ypbind
Version: 7.1
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Florian La Roche
QA Contact: Aaron Brown
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2001-06-12 20:19 UTC by hjl
Modified: 2007-04-18 16:33 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2001-06-12 20:19:55 UTC
Embargoed:


Attachments (Terms of Use)
A patch (1.16 KB, patch)
2001-06-12 20:19 UTC, hjl
no flags Details | Diff

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


Note You need to log in before you can comment on or make changes to this bug.