Cory Megitt [ClamAV] wrote:
[EMAIL PROTECTED] wrote:
| Hi All;
|
| I've followed qmailrocks.org's site to a "t" and got clamav working
| properly, however, the clamav.log file does not update.
|
| It's still at 0 bytes and at the original date when I "touched" the
file.
|
| The permissions seem right, and the configuration in freshclam.conf
seems
| okay.
|

I noticed the other day when I switched freshclam from cron to daemon
that it was not logging since logrotate ran.  I HUP'ped the daemon and
it was fine.  I also put "copytruncate" in the logrotate script.  You
could also tell logrotate to HUP after it is done.

Not sure if that solves your problem....


Hi Dennis - Thanks for the reply.

What would the typed command lines look like - I am not a novice, but I've
not had to use any commands like that before..


I'm not sure which daemon you have having problems with. You talked about clamav.log and freshclam.conf. I personally use 2 log files: clamd.log and freshclam.log. Each is set in the respective conf files (clamd.conf (formerly clamav.conf) and freshclam.conf).


As for HUPping the daemon, there are a couple methods. If your system has killall, that is the simplest:

killall -HUP clamd
killall -HUP freshclam

If not, just run:

ps -ef|grep clam

and get the PID (eg 12345) for that process and then:

kill -HUP 12345

and similar for freshclam.

Logrotate is a different beast. Read the man pages on it and look in /etc/logrotate.d/ for the config file that handles the logfile(s) for clamav. Mine looks like this (freshclam):

/path/to/freshclam.log {
    create 600 clamav clamav
    rotate 20
    weekly
    compress
    compresscmd /usr/bin/bzip2
    compressext .bz2
    copytruncate
    nomail
    olddir /path/to/archive/
}

The one for clamav is similar, but I rotate it daily. If you prefer to HUP the daemon instead of using copytruncate, the man pages should tell you how to run commands after logrotate runs. Take a look at the one for syslog for an idea.


Hope that helps.

--
Dennis Skinner
Systems Administrator
BlueFrog Internet
http://www.bluefrog.com

"Deep summer is when laziness finds respectability.  - Sam Keen"
_______________________________________________
http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-users

Reply via email to