Bug 243708 - Wrong init script
Summary: Wrong init script
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: rusers
Version: 5.0
Hardware: All
OS: Linux
low
low
Target Milestone: ---
: ---
Assignee: Honza Horak
QA Contact: qe-baseos-daemons
URL:
Whiteboard:
Depends On: 243707
Blocks:
TreeView+ depends on / blocked
 
Reported: 2007-06-11 14:17 UTC by Michal Marciniszyn
Modified: 2014-02-10 23:03 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-03-13 17:35:28 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
proposed patch for rusersd.init and rstatd.init (4.09 KB, patch)
2011-06-16 15:23 UTC, Honza Horak
no flags Details | Diff

Description Michal Marciniszyn 2007-06-11 14:17:51 UTC
+++ This bug was initially created as a clone of Bug #243707 +++

Description of problem:
The rstatd and rusersd init scripts return wrong error codes. There are also
constructions in these scripts that prevent correct status command call, for
example:
if [ ${NETWORKING} = "no" ]
then
        exit 0
fi

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

How reproducible:
always

Steps to Reproduce:
1.
2.
3.
  
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:
http://intranet.corp.redhat.com/ic/intranet/InitscriptsSpec.html
http://intranet.corp.redhat.com/ic/intranet/InitscriptGuidelines.html

For an example of the script that returns the error codes correctly and always
runs status see:
http://devserv.devel.redhat.com/~mmarcini/amd

This bug is tracked by 237789.

Comment 1 Ondrej Vasik 2011-02-18 11:38:42 UTC
As RHEL-4.9 is last update for RHEL-4 and it is not suitable for new features
and should address only security, performance and critical issues, I'm moving
the bugzilla to RHEL-5. Init script was fixed in RHEL-6.

Comment 3 Honza Horak 2011-06-16 15:23:46 UTC
Created attachment 505075 [details]
proposed patch for rusersd.init and rstatd.init

This patch fixes rusersd.init and rstatd.init using the following changes:
* fixes a return code when networking isn't up in rusersd.init and this test is moved to start/stop actions
* tries to start portmap if stopped in rstatd.init (the same behavior as it
already is in rusers.init)
* checks if binding to portmap was successful in both init scripts (this is a
simple way how to find out if a child has been initiated correctly, while the
parent process always returns "0" right after fork)

Any comments to this patch are welcome.

Comment 10 Honza Horak 2013-03-13 17:35:28 UTC
This bug has been fixed in RHEL-6 and there is no chance to fix this in RHEL-5 any more, since RHEL 5.10 is going to include only serious fixes.


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