Bug 474570 - Incorrect exit codes from nfs init script
Summary: Incorrect exit codes from nfs init script
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: nfs-utils
Version: 4.7
Hardware: All
OS: Linux
low
low
Target Milestone: rc
: ---
Assignee: Steve Dickson
QA Contact: Martin Jenner
URL:
Whiteboard:
Depends On: 431891
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-12-04 14:20 UTC by Jeff Moyer
Modified: 2009-05-18 19:02 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-05-18 19:02:53 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2009:0955 0 normal SHIPPED_LIVE Moderate: nfs-utils security and bug fix update 2009-05-18 13:24:03 UTC

Description Jeff Moyer 2008-12-04 14:20:41 UTC
+++ This bug was initially created as a clone of Bug #431891 +++

Description of problem:

/etc/init.d/nfs start fails (exit with a non-zero exit code) if nfs is already
running.


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


How reproducible:


Steps to Reproduce:
1. Add a export entry in /etc/exports
2. Run /etc/init.d/nfs start
3. Run /etc/init.d/nfs start again
  
Actual results:
Starting NFS services:  [  OK  ]
Starting NFS quotas: [  OK  ]
Starting NFS daemon: [FAILED]

Exitcode 1


Expected results:

Exitcode 0

Additional info:

The LSB specification
(http://refspecs.linux-foundation.org/LSB_3.2.0/LSB-Core-generic/LSB-Core-generic/iniscrptact.html)
states that start on an already started service should be considdered success,
and return exit code 0.

It appears this has already been fixed in Fedora. The initscript in
nfs-utils-1.1.0-6.fc8 adheres to LSB.

--- Additional comment from steved on 2008-09-16 14:41:39 EDT ---

fixed in nfs-utils-1.0.9-34

Comment 1 Jeff Moyer 2008-12-04 14:21:46 UTC
In our case, a regression test does a 'service nfs stop' to ensure that no nfs daemon is running.  If no daemon was running, the init script returns failure.

Comment 6 Steve Dickson 2009-03-06 13:27:27 UTC
Fixed in nfs-utils-1.0.6-90.EL4

Comment 13 errata-xmlrpc 2009-05-18 19:02:53 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHSA-2009-0955.html


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