Created attachment 1201642 [details] Update logrotate script Description of problem: On every logrotate (monthly) run for clamav, the following message can be seen under certain configuration: error: running non-shared postrotate script for /var/log/clamd.smtpd.log of '/var/log/clamd.smtpd.log' Version-Release number of selected component (if applicable): Current clamav in EPEL6 and later. How reproducible: Every month as seen in logwatch Steps to Reproduce: 1. install clamav 2. enable smtpd 3. Actual results: The error is seen in the log Expected results: We should see no error Additional info: As seen in rhbz#1249725 the fix is about to redirect the standard output. Patch attached
I don't quite follow. The clamd package's logrotate script does not deal with /var/log/clamd.smtpd.log, but with /var/log/clamav/clamd.log. You must have a custom logrotate script.
(In reply to Orion Poplawski from comment #1) > I don't quite follow. The clamd package's logrotate script does not deal > with /var/log/clamd.smtpd.log, but with /var/log/clamav/clamd.log. You must > have a custom logrotate script. wrong paste then
So you also get error messages about /var/log/clamav/clamd.log? So there is no "clamd" process?
(In reply to Orion Poplawski from comment #3) > So you also get error messages about /var/log/clamav/clamd.log? So there is > no "clamd" process? Thx for your notice. Actually I've reported it on the wrong component. There is indeed a /var/log/clamd.clamsmtp/clamsmtpd.log that comes from a separate clamsmtp package. (filled a separate issue about this). Now both the clamd and clamd.clamsmtp logrotate files should be derived from this clamd.logrotate file (as it's also provided in clamav-devel as template for other services based on clamd).
(In reply to Orion Poplawski from comment #3) > So you also get error messages about /var/log/clamav/clamd.log? So there is > no "clamd" process? I think it's easily reproducible if clamav got installed, but the service isn't started. That's the reason the logrotate postrotate command should be standardized to not report error code and even any output.