Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 227756 - spamassassin needs restart only if sa-update returns 0
spamassassin needs restart only if sa-update returns 0
Product: Fedora
Classification: Fedora
Component: spamassassin (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Warren Togami
Depends On:
  Show dependency treegraph
Reported: 2007-02-07 17:35 EST by Milan Kerslager
Modified: 2008-03-15 21:17 EDT (History)
6 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2008-03-15 21:17:04 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Milan Kerslager 2007-02-07 17:35:13 EST
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.
Comment 1 Warren Togami 2007-02-07 17:43:18 EST
Nice catch, adding this to the package...
Comment 2 Warren Togami 2007-02-07 17:47:38 EST
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
Comment 3 Milan Kerslager 2007-02-07 18:24:11 EST
This seems to be correct.
Comment 4 Kevin Fenzi 2008-03-15 21:17:04 EDT
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. 

Note You need to log in before you can comment on or make changes to this bug.