Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
For bugs related to Red Hat Enterprise Linux 4 product line. The current stable release is 4.9. For Red Hat Enterprise Linux 6 and above, please visit Red Hat JIRA https://issues.redhat.com/secure/CreateIssue!default.jspa?pid=12332745 to report new issues.

Bug 243700

Summary: Wrong init script
Product: Red Hat Enterprise Linux 4 Reporter: Michal Marciniszyn <mmarcini>
Component: rhnsdAssignee: Pradeep Kilambi <pkilambi>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: 4.5CC: dant, msuchy, tvujec
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: rhel 5.4 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-10-07 10:37:35 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:
Bug Depends On: 243699    
Bug Blocks:    

Description Michal Marciniszyn 2007-06-11 14:00:12 UTC
+++ This bug was initially created as a clone of Bug #243699 +++

Description of problem:
The rhnsd init script returns incorrect error codes and also some constructions
in it prevent the correct status command call. For example:
[ -x /usr/sbin/rhnsd ] || exit 0
[ -f /etc/sysconfig/rhn/systemid ] || exit 0

Also the script contains 
INTERVAL=240
which is IMHO configuration parameter that has nothing to do in the init script
and should be moved to conf file.

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 RHEL Program Management 2007-06-11 14:04:52 UTC
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
release.

Comment 2 Dan Thurman 2009-03-30 15:59:14 UTC
Link: http://devserv.devel.redhat.com/~mmarcini/amd

does not exist!

Comment 3 Miroslav Suchý 2009-10-07 10:37:35 UTC
INTERVAL is defined for some time in /etc/sysconfig/rhn/rhnsd
And if those files do not exist we return 6:
[ -x /usr/sbin/rhnsd ] || exit 6
[ -f /etc/sysconfig/rhn/systemid ] || exit 6

Not sure when it was fixed, but in RHEL 5.4