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 }
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!