Comment 29 for bug 940030

Revision history for this message
roy (roy123) wrote :

A workaround.

Have/Had the same issue.
As the logrotate is executed by the daily cronjob, I modified /etc/cron.daily/logrotate to the following:
-------------------------------------------------
#!/bin/sh

/usr/sbin/logrotate -s /var/lib/logrotate/logrotate.status /etc/logrotate.conf
EXITVALUE=$?
if [ $EXITVALUE != 0 ]; then
    /usr/bin/logger -t logrotate "ALERT exited abnormally with [$EXITVALUE]"
fi
/bin/systemctl restart rsyslog
exit 0
----------------------------------------------------

And that resolved the issue.