Bug 157601 - A 'configtest' parameter for the named service (attached).
A 'configtest' parameter for the named service (attached).
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: bind (Show other bugs)
4.0
All Linux
medium Severity medium
: ---
: ---
Assigned To: Adam Tkac
:
Depends On:
Blocks: 176344
  Show dependency treegraph
 
Reported: 2005-05-12 23:08 EDT by Mike MacCana
Modified: 2013-04-30 19:33 EDT (History)
2 users (show)

See Also:
Fixed In Version: RHBA-2007-0743
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2007-11-15 11:03:15 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
updated init script with 'checkconf' parameter. (3.45 KB, text/plain)
2005-05-12 23:08 EDT, Mike MacCana
no flags Details

  None (edit)
Description Mike MacCana 2005-05-12 23:08:26 EDT
Description of problem:
- apachectl configtest
- named-checkconf
- testparm

It's hard for users to remember these different syntax checking tools. httpd's
init script has a 'configtest' parameter. Here's a named one. I'm submitting one
for smb in a sec.

The aim: consistency.

Its a minor change, so do you think this one could be rolled into the next RHEL4
bind update?
Comment 1 Mike MacCana 2005-05-12 23:08:27 EDT
Created attachment 114320 [details]
updated init script with 'checkconf' parameter.
Comment 2 Jason Vas Dias 2005-05-13 11:29:11 EDT
Yes, I'll make a 'checkconf' / 'check' argument for the next 
named initscript.

The implementation you attached wouldn't do it though - the
'$ckcf_options' variable, which includes the vital '-t' option,
is only set during the 'start' function. 

The 'start' function already does the named-checkconfig, since
without it named would start, fork a child and return 0; the
child would go on to check the configuration and could fail.
Comment 3 Mike MacCana 2005-05-16 03:56:51 EDT
You mean it'll work, but I've screwed up the options, so it won't use
any :^). Indeed start already does the named-checkconf, but for
consistency with httpd and so on, it's nice to have a seperate check.

Thanks Jason.

Whether it'd 'checkconf' or 'check', it should be the same as httpd
and (in future) smb in the same release.
Comment 4 Jason Vas Dias 2005-05-17 22:30:45 EDT
This is now fixed with bind-9.3.1-4 in rawhide-2005-05-18 / FC4 
Comment 5 RHEL Product and Program Management 2006-08-18 13:43:03 EDT
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 11 RHEL Product and Program Management 2007-05-09 07:18:42 EDT
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 17 errata-xmlrpc 2007-11-15 11:03:15 EST
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-0743.html

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