On Sun, 10 Aug 2008 13:51:43 +1000 (EST) Tim Connors wrote:

[...]
> PS.  Workaround for the guys who reported this bug is to remove
> /etc/logrotate.d/acpid.  I decided to purge whatever else might have been
> left behind accidentally by running (no gaurantees this won't screw your
> system :)  Does aptitude/dpkg come with a cleaner way to purge obsolete
> conffiles?  This seems to be affecting me more and more recently.  I
> wonder if policy needs a change or whether packagers aren't following
> policy related to conffiles anymore.
> 
> > dpkg --force-depends --purge acpid
> > aptitude install acpid

Thanks for spotting that /etc/logrotate.d/acpid is no longer shipped
with package acpid!
I've just done the following:


# cat /etc/logrotate.d/acpid 
/var/log/acpid {
    weekly
    rotate 4
    compress
    missingok
    postrotate
        pkill -SIGUSR1 acpid > /dev/null || true
    endscript
}
# aptitude purge acpid
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Reading extended state information      
Initializing package states... Done
Reading task descriptions... Done  
The following packages will be REMOVED:
  acpid{p} 
0 packages upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
Need to get 0B of archives. After unpacking 180kB will be freed.
Do you want to continue? [Y/n/?] 
Writing extended state information... Done
(Reading database ... 159964 files and directories currently installed.)
Removing acpid ...
Stopping ACPI services....
Purging configuration files for acpid ...
dpkg - warning: while removing acpid, directory `/etc/acpi/events' not empty so 
not removed.
dpkg - warning: while removing acpid, directory `/etc/acpi' not empty so not rem
oved.
Processing triggers for man-db ...
Reading package lists... Done             
Building dependency tree       
Reading state information... Done
Reading extended state information      
Initializing package states... Done
Writing extended state information... Done
Reading task descriptions... Done         

# cat /etc/logrotate.d/acpid 
/var/log/acpid {
    weekly
    rotate 4
    compress
    missingok
    postrotate
        pkill -SIGUSR1 acpid > /dev/null || true
    endscript
}
# dpkg -S /etc/logrotate.d/acpid
dpkg: /etc/logrotate.d/acpid not found.
# rm /etc/logrotate.d/acpid
rm: remove regular file `/etc/logrotate.d/acpid'? y
# aptitude install acpid
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Reading extended state information      
Initializing package states... Done
Reading task descriptions... Done  
The following NEW packages will be installed:
  acpid 
0 packages upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B/31.7kB of archives. After unpacking 180kB will be used.
Writing extended state information... Done
Reading package fields... Done
Reading package status... Done
Retrieving bug reports... Done
Parsing Found/Fixed information... Done
Selecting previously deselected package acpid.
(Reading database ... 159942 files and directories currently installed.)
Unpacking acpid (from .../acpid_1.0.6-10_i386.deb) ...
Processing triggers for man-db ...
Setting up acpid (1.0.6-10) ...
Loading ACPI modules...Module already loaded: battery
Module already loaded: ac
Module already loaded: processor
Module already loaded: button
Module already loaded: fan
Module already loaded: thermal
Module already loaded: video
..
Starting ACPI services....
Reading package lists... Done             
Building dependency tree       
Reading state information... Done
Reading extended state information      
Initializing package states... Done
Writing extended state information... Done
Reading task descriptions... Done         

# cat /etc/logrotate.d/acpid 
cat: /etc/logrotate.d/acpid: No such file or directory
# ls /var/log/acpid* -l
-rw-r----- 1 root root  0 2008-08-10 10:24 /var/log/acpid
-rw-r----- 1 root root 20 2008-08-03 22:36 /var/log/acpid.1.gz
-rw-r----- 1 root root 20 2008-07-27 10:56 /var/log/acpid.2.gz
-rw-r----- 1 root root 20 2008-07-20 10:57 /var/log/acpid.3.gz
-rw-r----- 1 root root 20 2008-07-13 10:45 /var/log/acpid.4.gz
# rm /var/log/acpid* 
rm: remove regular empty file `/var/log/acpid'? y
rm: remove regular file `/var/log/acpid.1.gz'? y
rm: remove regular file `/var/log/acpid.2.gz'? y
rm: remove regular file `/var/log/acpid.3.gz'? y
rm: remove regular file `/var/log/acpid.4.gz'? y


On next Sunday, I will verify if this worked out as intended...

Thanks again for your contribution.
Bye.

-- 
 http://frx.netsons.org/doc/index.html#nanodocs
 The nano-document series is here!
..................................................... Francesco Poli .
 GnuPG key fpr == C979 F34B 27CE 5CD8 DC12  31B5 78F4 279B DD6D FCF4

Attachment: pgpKlivFumkY6.pgp
Description: PGP signature

Reply via email to