Daily '/etc/cron.daily/logrotate' error

WebIdentity

Member
Mar 27, 2004
17
0
151
For the past few nights at 03:00 i get the following error in my inbox as a response from a daily cron job:

Code:
/etc/cron.daily/logrotate:

error: sa-update:3 unknown option 'notifyempty' -- ignoring line
Anyone know whats going on there? Thanks.
 

cPanelDon

cPanel Quality Assurance Analyst
Staff member
Nov 5, 2008
2,545
12
268
Houston, Texas, U.S.A.
cPanel Access Level
DataCenter Provider
Twitter
What OS and version is installed on the system?
Code:
# cat /etc/*release
If on CentOS, RHEL, or Fedora, it sounds like there was a SpamAssassin RPM installed or updated, and this may have installed or updated a file at the following path:
/etc/logrotate.d/sa-update
Code:
# cat /etc/logrotate.d/sa-update
Inside the file you may see the text "notifyempty" -- this should be corrected to "notifempty" where there is no "y" after the words "not" and "if".

You may use the following commands to verify if the file is part of an installed RPM and check it's modification date and time:
Code:
# stat /etc/logrotate.d/sa-update
# rpm -qf /etc/logrotate.d/sa-update
# rpm -q spamassassin
Please note that it is not necessary to have the SpamAssassin RPM installed; if it is needed, SpamAssassin can be safely installed using the following script:
Code:
# /scripts/installspam
Here is a reference to an old bug report that may be related:
https://bugzilla.redhat.com/show_bug.cgi?id=223753