Bug 243703 - Wrong init script
Wrong init script
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: nfs-utils (Show other bugs)
All Linux
low Severity low
: ---
: ---
Assigned To: Steve Dickson
Depends On:
Blocks: 237789 243705 243706
  Show dependency treegraph
Reported: 2007-06-11 10:11 EDT by Michal Marciniszyn
Modified: 2014-02-10 18:03 EST (History)
2 users (show)

See Also:
Fixed In Version: RHBA-2007-0651
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2007-11-07 12:15:37 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
rpcgssd.diff (1.40 KB, application/octet-stream)
2007-08-31 10:05 EDT, Jan Hutař
no flags Details
rpcidmapd.diff (980 bytes, application/octet-stream)
2007-08-31 10:05 EDT, Jan Hutař
no flags Details
rpcsvcgssd.diff (1.37 KB, application/octet-stream)
2007-08-31 10:06 EDT, Jan Hutař
no flags Details

  None (edit)
Description Michal Marciniszyn 2007-06-11 10:11:17 EDT
Description of problem:
The rpcgssd, rpcidmapd and rpcsvcgssd init scripts returns incorrect error
codes. Some constructions in these scripts also prevent the correct status
command call, for example:
if [ ! -f /etc/sysconfig/network ]; then
    exit 0
[ "${NETWORKING}" = "no" ] && exit 0
[ ! -x /usr/sbin/rpc.gssd ] && exit 0
[ "${SECURE_NFS}" != "yes" ] && exit 0

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

How reproducible:

Steps to Reproduce:
Actual results:

Expected results:

Additional info:
When fixing this bug, please obbey our init script guidelines and be sure that
status command is run correctly.
Our guidelines are on following two pages:

For an example of the script that returns the error codes correctly and always
runs status see:

This bug is tracked by 237789.
Comment 1 RHEL Product and Program Management 2007-06-11 10:14:55 EDT
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux maintenance release.  Product Management has requested
further review of this request by Red Hat Engineering, for potential
inclusion in a Red Hat Enterprise Linux Update release for currently deployed
products.  This request is not yet committed for inclusion in an Update
Comment 3 Steve Dickson 2007-06-28 09:13:41 EDT
fixed in nfs-utils-1.0.9-22.el5
Comment 6 Jan Hutař 2007-08-31 10:05:24 EDT
Created attachment 183361 [details]
Comment 7 Jan Hutař 2007-08-31 10:05:42 EDT
Created attachment 183381 [details]
Comment 8 Jan Hutař 2007-08-31 10:06:00 EDT
Created attachment 183401 [details]
Comment 9 Steve Dickson 2007-09-04 06:45:18 EDT
I guess I don't understand why moving all the global 
sanity checking into the start method is a good thing.

What breaks by having these checks at the beginning 
of the script?
Comment 10 Michal Marciniszyn 2007-09-04 08:12:56 EDT
The status command won't be able to run and also the service won't be able to
stop when some of the checks fail. 
Comment 11 Steve Dickson 2007-09-05 10:17:33 EDT
Should the return value of a service that's not configured
be the "program is not configured" value (i.e. 6)? 
Regardless of that command argument was given?

Also before a server is disabled shouldn't the
server be stopped?

Now I'm more than willing to make the appropriate
changes (believe me I don't want to be a pain) but 
I just when through this very exercise with the 
Fedora crowd so I'm concern about make changes
here that will not be acceptable there... 
Comment 12 Michal Marciniszyn 2007-09-12 11:41:34 EDT
There is nice page from Harald Hoyer who is working on new init for fedora. The
recommendations for fedora and RHEL are IMHO consistent, so if you fix the bug
following this page:
everything should be OK. (of course RHEL 5 init does not need LSB header and
some othre stuff).
Comment 13 Suzanne Yeghiayan 2007-09-17 15:33:07 EDT
This request was previously evaluated by Red Hat Product Management
for inclusion in the current Red Hat Enterprise Linux release, but
Red Hat was unable to resolve it in time.  This request will be
reviewed for a future Red Hat Enterprise Linux release.
Comment 18 errata-xmlrpc 2007-11-07 12:15:37 EST
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 the 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.


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