Package: apt-cacher-ng Version: 0.2.2-2 Severity: important Tags: patch When logrotate rotates the /var/log/apt-cacher-ng/apt-cacher-ng.log it changes ownership to root, causing apt-cacher-ng to fail logging. Furthermore, the logrotate script sends kill -SIGUSR1 rather than kill -USR1 to make apt-cacher-ng reopen its logfiles.
I would recommend the logrotate script /etc/logrotate.d/apt-cacher-ng looks similar to this: /var/log/apt-cacher-ng/*.log { size 10M missingok rotate 12 compress delaycompress notifempty create 640 apt-cacher-ng apt-cacher-ng postrotate if [ -s /var/run/apt-cacher-ng/pid ] ; then kill -USR1 "$(cat /var/run/apt-cacher-ng/pid)" fi endscript } -- System Information: Debian Release: 5.0.3 APT prefers stable APT policy: (500, 'stable') Architecture: amd64 (x86_64) Kernel: Linux 2.6.26-2-xen-amd64 (SMP w/1 CPU core) Locale: LANG=en_DK.UTF-8, LC_CTYPE=en_DK.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages apt-cacher-ng depends on: ii adduser 3.110 add and remove users and groups ii libbz2-1.0 1.0.5-1 high-quality block-sorting file co ii libc6 2.7-18 GNU C Library: Shared libraries ii libfuse2 2.7.4-1.1 Filesystem in USErspace library ii libgcc1 1:4.3.2-1.1 GCC support library ii libstdc++6 4.3.2-1.1 The GNU Standard C++ Library v3 ii zlib1g 1:1.2.3.3.dfsg-12 compression library - runtime apt-cacher-ng recommends no packages. apt-cacher-ng suggests no packages. -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org