From 8f17aef4b2af9d16e5e9cba005cb7a3ed33ccce5 Mon Sep 17 00:00:00 2001 From: Nick Bebout Date: Wed, 16 Feb 2011 20:31:45 +0000 Subject: [PATCH] Restart spampd on sa-update Patch by Simon Matter --- sa-update.cronscript | 2 ++ 1 file changed, 2 insertions(+) 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