Restart spampd on sa-update
Patch by Simon Matter <simon.matter@invoca.ch>
This commit is contained in:
parent
394ef9b4bb
commit
8f17aef4b2
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user