[CentOS] logrotate failed ... (CentOS 6.9)

Wed May 3 08:03:03 UTC 2017
James Pearson <james-p at moving-picture.com>

Walter H. wrote:
>
> I found your hint several time ago, this didn't solve it ...
>
> I don't understand this
>
> -        killall -HUP clamd.<SERVICE> 2>/dev/null || :
> +        killall -HUP clamd.<SERVICE> > /dev/null 2>&1 || true
>
> in the patch
>
> as the file has this
>          pkill -SIGHUP -f clamd.clamsmtp >/dev/null 2>&1 || :
>
> in comparison /etc/logrotate.d/clamav has this
>
>         killall -HUP clamd >/dev/null 2>&1 || :

Sorry, I have no other suggestions - logrotate will only 'error' in that 
way if the postrotate commands return something other than zero - and in 
the examples you've given, it will always return 0 ...

James Pearson