Hello people, and thanks in advance for any help on this matter. I seem to be having a problem with Postfix+Amavisd-new+ClamAV+LogRotate. It is a problem that I have yet to reproduce, so as you can probably guess I'm getting pretty frustrated.
I've searched google up and down and although I've found some notes from other people hinting to this kind of behaviour, I have not found a solution. My problem is as follows: I am running a gentoo box, with ClamAV version 0.68-1, Amavisd-new version 20030616-p8, Syslog-ng version 1.6.0rc3, and Logrotate version 3.6.5. I have logrotate set to rotate my logs nightly, and have been having seemingly random problems with ClamAV restarting after the rotation occurs. The log file get rotated fine, and logrotate restarts syslog-ng fine also. The problem is that sometimes ClamAV simply does not start up! The only thing I can find in my log files is in the daemon.log file: Apr 16 00:06:28 {host} rc-scripts: Failed to start clamd No other warnings at all. :( I've restarted ClamAV by hand numerous times and everything works fine. I guess I should mention that Clam is set to log via SysLog, and not its own log file. That's why I must restart ClamAV when I restart syslog-ng (otherwise, nothing gets written by ClamAV to the log files). Can anyone make any suggestions as to what may be happening? If you need more info I'll be happy to supply. I am not sure what is or is not relevant, besides the already said info. Here is a snippit of my logrotate config file: /var/log/mail.log { missingok olddir /var/log/oldlogs size=500M sharedscripts postrotate /etc/init.d/syslog-ng reload || true /etc/init.d/clamd restart || true /etc/init.d/amavisd restart || true /etc/init.d/mailgraph restart || true endscript } I am restarting ClamAV and Amavis because if I do not do that, neither seem to write to the log files anymore. I thought that reloading syslog-ng would take care of that, but it doesn't. Thanks for reading this long message. Greg ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Clamav-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/clamav-users