Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 122070 - app-antivirus/clamav package should include a logrotate config file
Summary: app-antivirus/clamav package should include a logrotate config file
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Other
: High enhancement (vote)
Assignee: Antivirus Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-07 19:29 UTC by Csaba Tóth
Modified: 2006-12-24 13:09 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Csaba Tóth 2006-02-07 19:29:36 UTC
Hi, i clean up my system logging, and see that there isnt any logrotate file for clamd and freshclam (both programs are in the clamav package).

(Btw there is a very big trouble with logrotate: in every package, which includes a program, what makes a log file, should contain a correct logrotate script(s). And if i delete a package, the logrotate config file should be deleted as well: because ok, there is a "missingok" parameter, just there isn't in use most of the times. And if i delete a package, the log files are deleted as well - or i delete it with hand, but the config files, including the logrotate script file don't deleted, and the whole logrotate process fails. I think i should not tell you what is the consequence of this. (The worse is a system-wide DOS, with an always failing booting up syndrome...))

ohh, i looked for the logrotate files in the www.clamav.net site, here is what i have found:
(sry, i cant attach the file)

======================================================

#
# Rotate Clam AV daemon log file
#

/var/log/clamav/clamd.log {
    missingok
    create 640 clamav clamav
    postrotate
        /bin/kill -HUP `cat /var/run/clamav/clamd.pid 2> /dev/null` 2> /dev/null || true
    endscript
}

#
# Rotate FreshClam daemon log file
#

/var/log/clamav/freshclam.log {
    missingok
    create 640 clamav clamav
    postrotate
        /bin/kill -HUP `cat /var/run/clamav/freshclam.pid 2> /dev/null` 2> /dev/null || true
    endscript
}
Comment 1 Andrej Kacian (RETIRED) gentoo-dev 2006-12-24 13:09:52 UTC
OK, finally got around to this critter. Your logrotate script is now being installed in clamav-0.88.7-r2, thanks.

As for your concern about not removing logrotate scripts, you can work around it by adding /etc/logrotate.d to CONFIG_PROTECT_MASK, so it will be treated like other files outside of /etc by portage.

Cheers!