Hi, I have my logrotate configured but it does not work propertly. Let me explain: mail # ls -lsah total 20M 4,0K drw------- 2 root root 4,0K ago 13 03:10 . 4,0K drwxr-xr-x 15 root root 4,0K ago 13 03:10 .. 15M -rw------- 1 root root 15M ago 13 12:38 mail.log 2,4M -rw------- 1 root root 2,4M ago 13 03:10 mail.log.1.gz 336K -rw------- 1 root root 331K ago 12 03:10 mail.log.2.gz 2,4M -rw------- 1 root root 2,4M ago 12 00:02 mail.log.3.gz 364K -rw------- 1 root root 360K ago 11 03:10 mail.log.4.gz
Seems it worked for days 11 12 and 13, but then, it keeps just one file and increases its size till I delete it, or I run logrotate by hand: afrodita mail # /usr/sbin/logrotate /etc/logrotate.conf afrodita mail # ls -lsah total 5,9M 4,0K drw------- 2 root root 4,0K ago 13 12:40 . 4,0K drwxr-xr-x 15 root root 4,0K ago 13 12:40 .. 4,0K -rw------- 1 root root 2,0K ago 13 12:40 mail.log 936K -rw------- 1 root root 932K ago 13 12:40 mail.log.1.gz 2,4M -rw------- 1 root root 2,4M ago 13 03:10 mail.log.2.gz 336K -rw------- 1 root root 331K ago 12 03:10 mail.log.3.gz 2,4M -rw------- 1 root root 2,4M ago 12 00:02 mail.log.4.gz I have logrotate in crontab: # crontab -l [...] 2 0 * * * /usr/sbin/logrotate /etc/logrotate.conf and this is its conf: In logrotate.conf: include /etc/logrotate.d and there # cat /etc/logrotate.d/mail # Apache2 logrotate snipet for Gentoo Linux # Contributes by Chuck Short # /var/log/mail/*log { missingok notifempty sharedscripts size 5M postrotate /etc/init.d/postfix reload > /dev/null 2>&1 || true endscript } Things get worst in apache logs: 182M -rw-r--r-- 1 apache apache 182M ago 13 12:37 blog_log_access_common # cat /etc/logrotate.d/apache2 # Apache2 logrotate snipet for Gentoo Linux # Contributes by Chuck Short # /var/log/apache2/*log { daily missingok notifempty sharedscripts postrotate /etc/init.d/apache2 reload > /dev/null 2>&1 || true endscript } 182 MB daily? I'm not a google server! TIA, -- Arnau Bria http://blog.emergetux.net Bombing for peace is like fucking for virginity -- [EMAIL PROTECTED] mailing list