From 9fb170c7e04a770555790bb12fb369a64d3bad55 Mon Sep 17 00:00:00 2001 From: Warren Togami Date: Wed, 7 Feb 2007 22:48:00 +0000 Subject: [PATCH] only restart spamd if necessary after sa-update (#227756) --- sa-update.cronscript | 4 ++-- spamassassin.spec | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/sa-update.cronscript b/sa-update.cronscript index 381147f..b6ca6c8 100644 --- a/sa-update.cronscript +++ b/sa-update.cronscript @@ -2,6 +2,6 @@ sleep $(expr $RANDOM % 7200) echo SpamAssassin rule update begins at `date` -/usr/bin/sa-update -/etc/init.d/spamassassin condrestart +# Only restart spamd if sa-update returns 0, meaning it updated the rules +/usr/bin/sa-update && /etc/init.d/spamassassin condrestart echo diff --git a/spamassassin.spec b/spamassassin.spec index 8ff48f1..96ee6cb 100644 --- a/spamassassin.spec +++ b/spamassassin.spec @@ -12,7 +12,7 @@ Summary: Spam filter for email which can be invoked from mail delivery agents. Name: spamassassin Version: 3.1.7 -Release: 7%{?dist} +Release: 8%{?dist} License: Apache License Group: Applications/Internet URL: http://spamassassin.apache.org/ @@ -186,6 +186,9 @@ fi exit 0 %changelog +* Wed Feb 07 2007 Warren Togami 3.1.7-8 +- only restart spamd if necessary after sa-update (#227756) + * Wed Feb 07 2007 Warren Togami 3.1.7-7 - requires gnupg (#227738)