Bug 88139

Summary: /etc/logrotate.d/named causes e-mail to be sent during log rotation
Product: [Retired] Red Hat Linux Reporter: Jordan Russell <jr-redhatbugs2>
Component: bindAssignee: Daniel Walsh <dwalsh>
Status: CLOSED RAWHIDE QA Contact: Ben Levenson <benl>
Severity: medium Docs Contact:
Priority: medium    
Version: 9   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2003-04-07 20:04:50 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Jordan Russell 2003-04-06 17:19:59 UTC
Description of problem:
After upgrading to Red Hat Linux 9, I just got this e-mail today...

Subject: Cron <root@hostname> run-parts /etc/cron.daily


Reloading named: [60G[  [0;32mOK[0;39m  ]

The problem is in /etc/cron.daily/logrotate. It redirects stderr to /dev/null 
but not stdout.

To fix, this line:

        /sbin/service named reload  2> /dev/null || true

should be changed to:

        /sbin/service named reload  >/dev/null 2> /dev/null || true

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

Comment 1 Daniel Walsh 2003-04-07 20:04:50 UTC
It will be fixed in the next release of bind.