Re: logrotate failed ... (CentOS 6.9)

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



On 01.05.2017 13:15, James Pearson wrote:
Walter.H@xxxxxxxxxxxxxxxxx:
I get regularily such a mail

<mail>
Anacron job 'cron.daily' on ....

/etc/cron.daily/logrotate:

error: error running non-shared postrotate script for
/var/log/clamd.clamsmtp/clamsmtpd.log of
'/var/log/clamd.clamsmtp/clamsmtpd.log'
</mail>
The following may help:

  https://bugzilla.redhat.com/show_bug.cgi?id=1376815

James Pearson


Hello,

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 || :



_______________________________________________
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