Your message dated Sun, 22 Nov 2009 12:18:12 +0100
with message-id <[email protected]>
and subject line Re: Bug#554144: Logrotate is wrong causing apt-cacher-ng to 
stop working
has caused the Debian Bug report #554144,
regarding Logrotate is wrong causing apt-cacher-ng to stop working
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
554144: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=554144
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
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



--- End Message ---
--- Begin Message ---
Version: 0.3.3-1

> 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.

No. AFAIK it copies the file attributes of the original file and I like
that behaviour.

> Furthermore, the logrotate script sends kill -SIGUSR1 rather than kill -USR1 
> to make apt-cacher-ng reopen its logfiles.

In Stable. Has been fixed for almost a year in Sid, see bug #506958 for
details.

Regards,
Eduard.

-- 
* _rene_ haut offlineimap
*** offlineimap ([email protected]) has joined channel #debian.de
* offlineimap haut _rene_
*** offlineimap ([email protected]) has quit: Client Quit


--- End Message ---

Reply via email to