Bug 88139 - /etc/logrotate.d/named causes e-mail to be sent during log rotation
/etc/logrotate.d/named causes e-mail to be sent during log rotation
Status: CLOSED RAWHIDE
Product: Red Hat Linux
Classification: Retired
Component: bind (Show other bugs)
9
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Daniel Walsh
Ben Levenson
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2003-04-06 13:19 EDT by Jordan Russell
Modified: 2007-04-18 12:52 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2003-04-07 16:04:50 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Jordan Russell 2003-04-06 13:19:59 EDT
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

/etc/cron.daily/logrotate:

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):
bind-9.2.1-16
Comment 1 Daniel Walsh 2003-04-07 16:04:50 EDT
It will be fixed in the next release of bind.

Dan

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