Re: logrotate failed ... (CentOS 6.9)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
https://lists.centos.org/mailman/listinfo/centos



[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux