Bug 72907 - named logrotate script uses kill instead of rndc
Summary: named logrotate script uses kill instead of rndc
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: bind
Version: 8.0
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Daniel Walsh
QA Contact: Ben Levenson
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2002-08-28 22:47 UTC by Dax Kelson
Modified: 2007-04-18 16:46 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2003-07-03 04:08:44 UTC
Embargoed:


Attachments (Terms of Use)

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!


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