Use /sbin/service instead of running the script directly.

This commit is contained in:
Warren Togami 2010-02-16 19:29:09 +00:00
parent dba70de5fc
commit 33ba0270d3

View File

@ -57,7 +57,7 @@ for keyid in $KEYLIST; do
done
/usr/bin/sa-update $arglist
if [ $? -eq 0 ]; then
/etc/init.d/spamassassin condrestart > /dev/null
[ -f /etc/init.d/amavisd ] && /etc/init.d/amavisd condrestart > /dev/null
[ -f /var/run/mimedefang.pid ] && /etc/init.d/mimedefang reload > /dev/null
/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
fi