Public bug reported: Binary package hint: logrotate
I started a thread on the issue here http://ubuntuforums.org/showthread.php?t=1441929 and it was suggested that I should file a bug report. The problem is that logrotate does not work on apache2 log files when the rotation is set to weekly. It works when set to daily, though. Here's the output of uname -a: Linux db1 2.6.24-27-server #1 SMP Fri Mar 12 01:23:09 UTC 2010 x86_64 GNU/Linux It's an install of Ubuntu 64-bit server running 8.04.4 with all updates installed as of 3/27/2010. Here's the contents of /etc/logrotate.conf ********************************************** BEGIN ********************************************** # see "man logrotate" for details # rotate log files weekly weekly # keep 4 weeks worth of backlogs rotate 4 # create new (empty) log files after rotating old ones create # uncomment this if you want your log files compressed #compress # packages drop log rotation information into this directory include /etc/logrotate.d # no packages own wtmp, or btmp -- we'll rotate them here /var/log/wtmp { missingok monthly create 0664 root utmp } /var/log/btmp { missingok monthly create 0664 root utmp } # system-specific logs may be configured here ********************************************** END ********************************************** Here are the contents of /etc/logrotate.d/apache2 ********************************************** BEGIN ********************************************** /var/log/apache2/*.log /var/log/apache2/portal/*.log { weekly missingok rotate 52 nocompress notifempty create 640 root adm sharedscripts postrotate if [ -f "`. /etc/apache2/envvars ; echo ${APACHE_PID_FILE:-/var/run/apache2.pid}`" ]; then /etc/init.d/apache2 reload > /dev/null fi endscript } ********************************************** END ********************************************** The access.log and error.log files are just continuing to grow. The access.log file, for example, is now 1.1MB (the system will not be in production for another 2 to 4 weeks and is just in testing phase right now). With the /etc/logrotate.d/apache2 rotation set to weekly, it won't rotate, but with it set to daily it does. ** Affects: logrotate (Ubuntu) Importance: Undecided Status: New -- logrotate will not work on apache2 logs when using weekly rotation https://bugs.launchpad.net/bugs/553422 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs