Use /sbin/service instead of running the script directly.
This commit is contained in:
parent
dba70de5fc
commit
33ba0270d3
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user