Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 848033

Summary: init script return wrong value for configtest
Product: Red Hat Enterprise Linux 6 Reporter: albert <superber>
Component: bindAssignee: Tomáš Hozza <thozza>
Status: CLOSED ERRATA QA Contact: qe-baseos-daemons
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.3CC: hhorak, thozza
Target Milestone: rcKeywords: Patch
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: bind-9.8.2-0.26.rc1.el6 Doc Type: Bug Fix
Doc Text:
Cause: Initscript returned a wrong return value if called checkconfig/configtest/check/test due to a missing statement in the initscript. Consequence: As a result, when named configuration included an error and 'service named configtest' was called, it exited with zero value (meaning success) regardless of errors in the configuration. Fix: Initscript was fixed to return the correct value when executed with checkconfig/configtest/check/test. Result: As a consequence, when named configuration includes an error and 'service named configtest' is called, it exits with non-zero value (meaning failure).
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-10-14 04:34:26 UTC Type: Bug
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:    
Bug Blocks: 1070830    
Attachments:
Description Flags
Set RETVAL to checkconfig return value none

Description albert 2012-08-14 11:33:02 UTC
Description of problem:

service named configtest always returns 0

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

bind-9.8.2-0.10.rc1.el6_3.2.x86_64

How reproducible:

Always

Steps to Reproduce:
1.put a typo in /etc/named.conf or in a zone
2.
3.
  
Actual results:

service named configtest returns 0 (OK)

Expected results:

service named configtest should return 1

Additional info:

I think there's a missing RETVAL=$? after the call to checkconfig() internal function

Comment 2 Adam Tkac 2012-09-05 12:09:17 UTC
(In reply to comment #0)
> I think there's a missing RETVAL=$? after the call to checkconfig() internal
> function

Right you are, thanks for the report.

Comment 4 Tomáš Hozza 2013-04-05 11:21:08 UTC
Created attachment 731887 [details]
Set RETVAL to checkconfig return value

Comment 6 RHEL Program Management 2013-10-14 00:31:37 UTC
This request was evaluated by Red Hat Product Management for
inclusion in the current release of Red Hat Enterprise Linux.
Because the affected component is not scheduled to be updated
in the current release, Red Hat is unable to address this
request at this time.

Red Hat invites you to ask your support representative to
propose this request, if appropriate, in the next release of
Red Hat Enterprise Linux.

Comment 12 errata-xmlrpc 2014-10-14 04:34:26 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2014-1373.html