Hi, I have this in my logroate.d/apache # Apache2 logrotate snipet for Gentoo Linux # Contributes by Chuck Short # /var/log/apache2/*log { daily missingok notifempty size 5M sharedscripts postrotate /etc/init.d/apache2 reload > /dev/null 2>&1 || true endscript }
And my logs are: # ls -lsah blog_log_access_common 20M -rw-r--r-- 1 root root 20M sep 25 12:04 blog_log_access_common 196K -rw-r--r-- 1 apache apache 190K feb 18 2007 blog_log_access_common.10.gz 152K -rw-r--r-- 1 apache apache 147K feb 16 2007 blog_log_access_common.11.gz 128K -rw-r--r-- 1 apache apache 122K feb 13 2007 blog_log_access_common.12.gz 236K -rw-r--r-- 1 apache apache 232K feb 10 2007 blog_log_access_common.13.gz 208K -rw-r--r-- 1 apache apache 203K feb 3 2007 blog_log_access_common.14.gz 188K -rw-r--r-- 1 apache apache 182K ene 30 2007 blog_log_access_common.15.gz 168K -rw-r--r-- 1 apache apache 163K mar 11 2007 blog_log_access_common.1.gz 196K -rw-r--r-- 1 apache apache 190K mar 9 2007 blog_log_access_common.2.gz 160K -rw-r--r-- 1 apache apache 156K mar 7 2007 blog_log_access_common.3.gz 164K -rw-r--r-- 1 apache apache 159K mar 5 2007 blog_log_access_common.4.gz 252K -rw-r--r-- 1 apache apache 245K mar 3 2007 blog_log_access_common.5.gz 152K -rw-r--r-- 1 apache apache 148K mar 1 2007 blog_log_access_common.6.gz 172K -rw-r--r-- 1 apache apache 166K feb 26 2007 blog_log_access_common.7.gz 168K -rw-r--r-- 1 apache apache 162K feb 23 2007 blog_log_access_common.8.gz 208K -rw-r--r-- 1 apache apache 201K feb 21 2007 blog_log_access_common.9.gz I run it: afrodita apache2 # /usr/sbin/logrotate /etc/logrotate.conf afrodita apache2 # And again: 20M -rw-r--r-- 1 root root 20M sep 25 12:04 blog_log_access_common 196K -rw-r--r-- 1 apache apache 190K feb 18 2007 blog_log_access_common.10.gz 152K -rw-r--r-- 1 apache apache 147K feb 16 2007 blog_log_access_common.11.gz 128K -rw-r--r-- 1 apache apache 122K feb 13 2007 blog_log_access_common.12.gz 236K -rw-r--r-- 1 apache apache 232K feb 10 2007 blog_log_access_common.13.gz 208K -rw-r--r-- 1 apache apache 203K feb 3 2007 blog_log_access_common.14.gz 188K -rw-r--r-- 1 apache apache 182K ene 30 2007 blog_log_access_common.15.gz 168K -rw-r--r-- 1 apache apache 163K mar 11 2007 blog_log_access_common.1.gz 196K -rw-r--r-- 1 apache apache 190K mar 9 2007 blog_log_access_common.2.gz 160K -rw-r--r-- 1 apache apache 156K mar 7 2007 blog_log_access_common.3.gz 164K -rw-r--r-- 1 apache apache 159K mar 5 2007 blog_log_access_common.4.gz 252K -rw-r--r-- 1 apache apache 245K mar 3 2007 blog_log_access_common.5.gz 152K -rw-r--r-- 1 apache apache 148K mar 1 2007 blog_log_access_common.6.gz 172K -rw-r--r-- 1 apache apache 166K feb 26 2007 blog_log_access_common.7.gz 168K -rw-r--r-- 1 apache apache 162K feb 23 2007 blog_log_access_common.8.gz 208K -rw-r--r-- 1 apache apache 201K feb 21 2007 blog_log_access_common.9.gz And logroate.conf: # cat /etc/logrotate.conf |grep .|grep -v "^#" weekly rotate 4 create compress include /etc/logrotate.d notifempty nomail noolddir /var/log/wtmp { monthly create 0664 root utmp rotate 1 } # eix -c logrotate [I] app-admin/logrotate ([EMAIL PROTECTED]/03/07): Rotates, compresses, and mails system logs Any clue on what's happening?¿ TIA -- Arnau Bria http://blog.emergetux.net Bombing for peace is like fucking for virginity -- [EMAIL PROTECTED] mailing list