logrotate doesn't seem to be rotating my logs properly and I'm having
some apache2 problems that must be related to my use of postrotate in
logrotate.conf.

In logrotate.conf I have this:

daily
rotate 4
create
include /etc/logrotate.d
notifempty
nomail
noolddir

Are "daily" and "rotate n" defaults?  The configuration examples I've
seen specify "daily" and "rotate n" in the log config sections.

My log config sections are like this:

/var/log/apache2/access_log {
        daily
        rotate 99
        postrotate
                /etc/init.d/apache2 restart
        endscript
}

for access_log, ssl_access_log, ssl_request_log, error_log, and
ssl_error_log with apache2 restarting for each.  I'm thinking that is
pretty bad.  Can anyone give me any pointers on this?

- Grant

P.S. logrotate.conf came with this:

/var/log/wtmp {
    monthly
    create 0664 root utmp
    rotate 1
}

What is that?

--
gentoo-user@gentoo.org mailing list

Reply via email to