only restart spamd if necessary after sa-update (#227756)

This commit is contained in:
Warren Togami 2007-02-07 22:48:00 +00:00
parent 931bd14ce4
commit 9fb170c7e0
2 changed files with 6 additions and 3 deletions

View File

@ -2,6 +2,6 @@
sleep $(expr $RANDOM % 7200) sleep $(expr $RANDOM % 7200)
echo SpamAssassin rule update begins at `date` echo SpamAssassin rule update begins at `date`
/usr/bin/sa-update # Only restart spamd if sa-update returns 0, meaning it updated the rules
/etc/init.d/spamassassin condrestart /usr/bin/sa-update && /etc/init.d/spamassassin condrestart
echo echo

View File

@ -12,7 +12,7 @@
Summary: Spam filter for email which can be invoked from mail delivery agents. Summary: Spam filter for email which can be invoked from mail delivery agents.
Name: spamassassin Name: spamassassin
Version: 3.1.7 Version: 3.1.7
Release: 7%{?dist} Release: 8%{?dist}
License: Apache License License: Apache License
Group: Applications/Internet Group: Applications/Internet
URL: http://spamassassin.apache.org/ URL: http://spamassassin.apache.org/
@ -186,6 +186,9 @@ fi
exit 0 exit 0
%changelog %changelog
* Wed Feb 07 2007 Warren Togami <wtogami@redhat.com> 3.1.7-8
- only restart spamd if necessary after sa-update (#227756)
* Wed Feb 07 2007 Warren Togami <wtogami@redhat.com> 3.1.7-7 * Wed Feb 07 2007 Warren Togami <wtogami@redhat.com> 3.1.7-7
- requires gnupg (#227738) - requires gnupg (#227738)