Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 101860 - apache2 ebuild don't create a logrotate script in /etc/logrotate.d
Summary: apache2 ebuild don't create a logrotate script in /etc/logrotate.d
Status: VERIFIED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-09 06:59 UTC by Jesus de Santos Garcia
Modified: 2005-09-08 02:19 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jesus de Santos Garcia 2005-08-09 06:59:37 UTC
I don't know if this have been previously discussed (haven't found anything in
the database). But it seems logical to me, that apache2 should create a file in
/etc/logrotate.d to rotate the logs that are created with the default
configuration. Mysql ebuild is actually doing this.

The ebuild version i have tested is the current stable: 2.0.54-r8

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2005-08-09 07:03:21 UTC
Huh?

$ equery b /etc/logrotate.d/apache2
[ Searching for file(s) /etc/logrotate.d/apache2 in *... ]
net-www/apache-2.0.54-r13 (/etc/logrotate.d/apache2)
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2005-08-09 07:18:28 UTC
OK, -r8 does not install this one; I hope we'll really get rid of the two apache
layouts ASAP. :/ 

If you want it, see below:

/var/log/apache2/*log {
  missingok
  notifempty
  sharedscripts
  postrotate
  /etc/init.d/apache2 reload > /dev/null 2>&1 || true
  endscript
}
Comment 3 Dan Thorson 2005-09-07 10:47:55 UTC
An alternative which uses "delaycompress" and apache's "graceful" HUP method

#
# Apache2 logrotate snippet for Gentoo Linux
# contributed by Dan Thorson
#

/var/log/apache2/*_log {
    missingok
    weekly
    rotate 5
    compress
    delaycompress
    sharedscripts
    postrotate
        apachectl graceful
    endscript
}
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2005-09-08 02:19:32 UTC
(In reply to comment #3)
>         apachectl graceful

This won't work, we have apache2ctl for apache-2. Anyway, if you have
suggestions wrt the logrotate script, please open a new bug, don't post to an
invalid one.

Closing.