Bug 85654 - remove /etc/logrotate.d/apache it is dangerous
remove /etc/logrotate.d/apache it is dangerous
Product: Red Hat Linux
Classification: Retired
Component: apache (Show other bugs)
All Linux
medium Severity high
: ---
: ---
Assigned To: Nalin Dahyabhai
Brian Brock
Depends On:
  Show dependency treegraph
Reported: 2003-03-05 11:20 EST by Neil Prockter
Modified: 2007-04-18 12:51 EDT (History)
1 user (show)

See Also:
Fixed In Version: 2.0.45-4
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2004-02-06 12:20:52 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Neil Prockter 2003-03-05 11:20:17 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3a) Gecko/20021212

Description of problem:
/etc/logrotate.d/apache should (IMO) be dropped.

restarting apache is something I want to be in control of

To rotate my logs I use
CustomLog "|/usr/sbin/rotatelogs <logfile> 86400" vhost

If I change my httpd.conf I want to apply it when I'm ready


why do you want to use logrotate? whats wrong with rotatelogs ( and not
restarting apache all the time)

do I have to set a cron job to delete /etc/logrotate.d/apache ?  can I tell
rpm/up2date to ignire this file? can I set my system to run a script everytime
rpm/up2date runs (so I can put  'rm /etc/logrotate.d/apache' in it)

3 times in the past year I've had a server outage thanks to
/etc/logrotate.d/apache. I might as well put it in my login script!

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

How reproducible:

Steps to Reproduce:
1. use rpr or up2date
2. use apache
3. use logrotate

Actual Results:  buggers up apache

Expected Results:  leave apache alone

Additional info:
Comment 1 Joe Orton 2003-04-03 10:30:23 EST
We should mark logrotate.d/apache as %config(noreplace), so that you make it an
empty file (or comment out the conents), and it won't be overwritten on
upgrades.  Thanks for the report.
Comment 2 Joe Orton 2003-05-19 08:36:03 EDT
/etc/logrotate.d/httpd is now marked config(noreplace) in httpd-2.0.45-4, so you
can make this an empty file and prevent your logs getting rotated.
Comment 3 Joe Orton 2004-02-06 12:20:52 EST
This is fixed in current releases of Red Hat Enterprise Linux and
Fedora Core.

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