tags 315063 +sarge
thanks
This one time, at band camp, Anders Henke said:
> No, this is no dupe to #315042 :-)
> 
> The postrotate script in /etc/logrotate.d/clamav-freshclam contains
> a line
> 
>       [ -f /var/run/clamav/freshclam.pid ] && kill -HUP `cat 
> /var/run/clamav/freshclam.pid` 
> 
> Well, if the "test -f" -command fails, it returns a non-zero exit status 
> and logrotate will report an "error running postrotate script".
> 
> Others might prefer to add "|| /bin/true", but a more creative solution
> is to negate the script:
> 
>       [ ! -f /var/run/clamav/freshclam.pid ] || kill -HUP `cat 
> /var/run/clamav/freshclam.pid` 
> 
> That way freshclam is only HUPed if the test fails - which either means
> that the "test" command is broken or the pid-file does exist.

Yes, that would have been better that what is in stable.  In unstable, I
have added a reload-log target to the init script that uses
start-stop-daemon and generally does a much better job.  Sadly, I think
we're stuck with this one for now.

Thanks for reporting,
-- 
 -----------------------------------------------------------------
|   ,''`.                                            Stephen Gran |
|  : :' :                                        [EMAIL PROTECTED] |
|  `. `'                        Debian user, admin, and developer |
|    `-                                     http://www.debian.org |
 -----------------------------------------------------------------

Attachment: signature.asc
Description: Digital signature

Reply via email to