Bug 72907

Summary: named logrotate script uses kill instead of rndc
Product: [Retired] Red Hat Linux Reporter: Dax Kelson <dkelson>
Component: bindAssignee: Daniel Walsh <dwalsh>
Status: CLOSED CURRENTRELEASE QA Contact: Ben Levenson <benl>
Severity: medium Docs Contact:
Priority: medium    
Version: 8.0   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2003-07-03 04:08:44 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:

Description Dax Kelson 2002-08-28 22:47:15 UTC
Description of Problem: 
 
The file: 
 
/etc/logrotate.d/named 
 
Has this line: 
 
/bin/kill -HUP `cat /var/run/named/named.pid 2> /dev/null` 2> /dev/null 
|| true 
 
This is bad, sending signals to named is deprecated and unreliable. Also, if 
you are running named in a chrooted jail, the PID file will be in a different 
location. 
 
I suggest replacing the line with: 
 
/etc/init.d/named reload 
 
This is clean since you aren't having to maintain the reload code in two 
places.  Alternatively, you can could replace it with (stolen from the sysv 
file): 
 
/usr/sbin/rndc reload >/dev/null 2>&1 || /usr/bin/killall -HUP `/sbin/pidof -o 
%PPID named` || true

Comment 1 Daniel Walsh 2003-01-06 20:01:20 UTC
Fixed in bind-9.2.1-12


Comment 2 Dax Kelson 2003-07-03 04:08:44 UTC
Thanks!