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: #!/bin/bash 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 echo
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.