Bug 476804

Summary: ypbind init script returns 0 for a successful start command
Product: [Fedora] Fedora Reporter: Dan Bode <bodepd>
Component: ypbindAssignee: Vitezslav Crhonek <vcrhonek>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 10CC: vcrhonek
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-12-17 09:16:58 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:

Description Dan Bode 2008-12-17 08:56:49 UTC
Description of problem:

init script for ypbind returns 1 on success

Version-Release number of selected component (if applicable):

# Version:      @(#) /etc/init.d/ypbind.init 1.3

How reproducible:

stop and start the service with the init script.

Steps to Reproduce:
1./etc/init.d/ypbind stop
2./etc/init.d/ypbind start
3.echo $?
  
Actual results:

1

Expected results:

0

Additional info:

bug is caused by the following lines

    147         start
    148         [ $? -eq 100 ] && stop
    ...
    166 esac
    167
    168 exit $?

if the return code of start is zero, then line 148 will change the return used for exit to 1

Comment 1 Vitezslav Crhonek 2008-12-17 09:16:58 UTC
It's already fixed in Rawhide (ypbind-1.20.4-10.fc11).

BTW I suppose that you have opened #476803 by mistake and should be closed, right?;)

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

Comment 2 Dan Bode 2008-12-17 09:35:35 UTC
yes, the previous bug was a mistake.