Log files should be rotated

Bug #718923 reported by Johan van Dijk
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
squid-deb-proxy (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

Binary package hint: squid-deb-proxy

At the moment, the log files for squid-deb-proxy are not rotated.
As a result, the log files in /var/log/squid-deb-proxy will grow unnecessary large (40 MB+ on my small home network). I don't think it's needed to keep logfiles for months.

I copied and adapted /etc/logrotate.d/squid to rotate the logs for squid-deb-proxy:

/var/log/squid-deb-proxy/*.log {
        daily
        compress
        delaycompress
        rotate 2
        missingok
        nocreate
        sharedscripts
        prerotate
                test ! -x /usr/sbin/sarg-reports || /usr/sbin/sarg-reports
        endscript
        postrotate
                test ! -e /var/run/squid-deb-proxy.pid || /usr/sbin/squid -f /etc/squid-deb-proxy/squid-deb-proxy.conf -k rotate
        endscript
}

This seems to work as it should on my system.
I'm not sure about the /usr/sbin/sarg-reports part, but that file does not exist on my system so that part doesn't do anything.

lsb_release -rd
Description: Ubuntu 10.04.2 LTS
Release: 10.04

apt-cache policy squid-deb-proxy
squid-deb-proxy:
  Installed: 0.3.1.0.1
  Candidate: 0.3.1.0.1
  Version table:
 *** 0.3.1.0.1 0
        500 http://nl.archive.ubuntu.com/ubuntu/ lucid-updates/universe Packages
        100 /var/lib/dpkg/status
     0.3.1 0
        500 http://nl.archive.ubuntu.com/ubuntu/ lucid/universe Packages

Revision history for this message
Johan van Dijk (johanvandijk) wrote :
Revision history for this message
Andrew Simpson (andrew-simpson) wrote :

Confirmed.

I am using a bit more modern log rotate file on a Debian system as follows (The reference to Sarge is gone).

#
# Logrotate fragment for squid-deb-proxy.
#
/var/log/squid-deb-proxy/*.log {
 daily
 compress
 delaycompress
 rotate 2
 missingok
 nocreate
 sharedscripts
 postrotate
  test ! -e /var/run/squid-deb-proxy.pid || /usr/sbin/squid -f /etc/squid-deb-proxy/squid-deb-proxy.conf -k rotate
 endscript
}

Michael Vogt (mvo)
Changed in squid-deb-proxy (Ubuntu):
status: New → In Progress
importance: Undecided → Medium
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package squid-deb-proxy - 0.4

---------------
squid-deb-proxy (0.4) natty; urgency=low

  * mirror-dstdomain.acl:
    - add ddebs.ubuntu.com to default mirrors
  * apt-avahi-discover:
    - use avahi-resolve to workaround the issue that avahi-browse
      sometimes hands out ipv6 even when asked for ipv4 only,
      many thanks to Andrew Simpson (LP: #686265)
  * contrib/squid-deb-proxy.init:
    - add sysv init script, thanks to Andrew Simpson
  * debian/squid-deb-proxy.upstart:
    - write avahi services file on post-start and kill it again
      on pre-stop (LP: #695937)
  * debian/squid-deb-proxy.squid-deb-proxy-avahi.upstart:
    - removed, this is part of squid-deb-proxy.upstart now
  * Makefile:
    - fix permission of 30autoproxy (LP: #697955)
  * debian/squid-deb-proxy.logrotate:
    - add logrotate file (LP: #718923), thanks to
      Johan van Dijk and Andrew Simpson
 -- Michael Vogt <email address hidden> Wed, 23 Mar 2011 21:53:11 +0100

Changed in squid-deb-proxy (Ubuntu):
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.