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 5 product line. The current stable release is 5.10. 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 251172

Summary: netconsole script does not correctly handle status when unconfigured
Product: Red Hat Enterprise Linux 5 Reporter: Bill Nottingham <notting>
Component: initscriptsAssignee: initscripts Maintenance Team <initscripts-maint-list>
Status: CLOSED ERRATA QA Contact: Brock Organ <borgan>
Severity: low Docs Contact:
Priority: low    
Version: 5.1CC: mmarcini, rvokal
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: RHBA-2007-0663 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-11-07 19:11:49 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:
Attachments:
Description Flags
patch for this issue none

Description Bill Nottingham 2007-08-07 16:02:07 UTC
The netconsole init script has:

[ -f /etc/sysconfig/netconsole ] || exit 0
. /etc/sysconfig/netconsole

[ -z "$SYSLOGADDR" ] && exit 0

This means that, when unconfigured, the script always returns 0. If someone
calls 'service netconsole status', it will always return that it's running, even
when it's not.

Later on, in the status() call, it never actually returns 'not running', even if
it isn't.

The attached patch fixes the following:

- remove obsolete check for ${NETWORKING}
- match RHEL 4 behavior by returning '1' if SYSLOGADDR isn't set (on startup)
- handle status() correctly

Comment 1 Bill Nottingham 2007-08-07 16:02:08 UTC
Created attachment 160827 [details]
patch for this issue

Comment 4 Bill Nottingham 2007-08-07 16:51:34 UTC
Fixed in 8.45.17.EL-1

Comment 8 errata-xmlrpc 2007-11-07 19:11:49 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 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.

http://rhn.redhat.com/errata/RHBA-2007-0663.html