[spamassassin] Restart spampd on sa-update Patch by Simon Matter <simon.matter at invoca.ch>

Nick Bebout nb at fedoraproject.org
Wed Feb 16 20:32:08 UTC 2011


commit 8f17aef4b2af9d16e5e9cba005cb7a3ed33ccce5
Author: Nick Bebout <nb at fedoraproject.org>
Date:   Wed Feb 16 20:31:45 2011 +0000

    Restart spampd on sa-update
    Patch by Simon Matter <simon.matter at invoca.ch>

 sa-update.cronscript |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/sa-update.cronscript b/sa-update.cronscript
index 6d81847..b88daa3 100644
--- a/sa-update.cronscript
+++ b/sa-update.cronscript
@@ -14,6 +14,7 @@ for daemon in spamd amavisd; do
     [ $? -eq 0 ] && SAUPDATE=yes
 done
 [ -f /var/run/mimedefang.pid ] && SAUPDATE=yes
+[ -f /var/run/spampd/spampd.pid ] && SAUPDATE=yes
 
 # Skip sa-update if daemon not detected
 [ -z "$SAUPDATE" ] && exit 0
@@ -71,6 +72,7 @@ if [ $status -eq 0 ]; then
 	 /sbin/service spamassassin condrestart > /dev/null
 	 [ -f /etc/init.d/amavisd ] && /sbin/service amavisd condrestart > /dev/null
 	 [ -f /var/run/mimedefang.pid ] && /sbin/service mimedefang reload > /dev/null
+	 [ -f /etc/init.d/spampd ] && /etc/init.d/spampd condrestart > /dev/null
         exit $status
 fi
 if [ $status -eq 1 ]; then


More information about the scm-commits mailing list