Restart opendkim au lieu de reload

Should fix #1567
This commit is contained in:
Alan Garcia 2014-03-26 18:13:45 +00:00
parent ab95ab4a4b
commit c6aabb8cef
1 changed files with 4 additions and 1 deletions

View File

@ -554,13 +554,16 @@ mkdir -p "/etc/opendkim/keys"
grep -q "^127.0.0.1\$" /etc/opendkim/TrustedHosts || echo "127.0.0.1" >>/etc/opendkim/TrustedHosts grep -q "^127.0.0.1\$" /etc/opendkim/TrustedHosts || echo "127.0.0.1" >>/etc/opendkim/TrustedHosts
grep -q "^localhost\$" /etc/opendkim/TrustedHosts || echo "localhost" >>/etc/opendkim/TrustedHosts grep -q "^localhost\$" /etc/opendkim/TrustedHosts || echo "localhost" >>/etc/opendkim/TrustedHosts
# Add opendkim to service to restart
SERVICES="$SERVICES incron"
# hook # hook
run-parts --arg=before-reload /usr/lib/alternc/install.d run-parts --arg=before-reload /usr/lib/alternc/install.d
####################################################################### #######################################################################
# Reload services # Reload services
# #
for service in postfix bind9 apache2 dovecot cron proftpd opendkim; do for service in postfix bind9 apache2 dovecot cron proftpd ; do
invoke-rc.d $service force-reload || true invoke-rc.d $service force-reload || true
done done