Red Hat Bugzilla – Bug 227756
spamassassin needs restart only if sa-update returns 0
Last modified: 2008-03-15 21:17:04 EDT
sa-update returns 1 if there is no update available
sa-update returns 0 if update has been succesfull
Please change /usr/share/spamassassin/sa-update.cron to not restart spamassassin
when there is no change in the updated rules.
Nice catch, adding this to the package...
Please double-check me... sa-update.cronscript now reads:
sleep $(expr $RANDOM % 7200)
echo SpamAssassin rule update begins at `date`
# Only restart spamd if sa-update returns 0, meaning it updated the rules
/usr/bin/sa-update && /etc/init.d/spamassassin condrestart
This seems to be correct.
Can this be closed now? This looks to have been updated long ago...
Feel free to file a new bug, or re-open if you see any further issues.