Bug 251172
| Summary: | netconsole script does not correctly handle status when unconfigured | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 5 | Reporter: | Bill Nottingham <notting> | ||||
| Component: | initscripts | Assignee: | initscripts Maintenance Team <initscripts-maint-list> | ||||
| Status: | CLOSED ERRATA | QA Contact: | Brock Organ <borgan> | ||||
| Severity: | low | Docs Contact: | |||||
| Priority: | low | ||||||
| Version: | 5.1 | CC: | 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: |
|
||||||
Created attachment 160827 [details]
patch for this issue
Fixed in 8.45.17.EL-1 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 |
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