create_opendkim_key.sh: reload opendkim servic instead of restarting it!

This commit is contained in:
Christoph 2019-01-05 04:31:11 +01:00
parent 593e906704
commit 35bba6994f

View File

@ -1248,7 +1248,7 @@ fi
echononl " Restart OpenDKIM.."
echo_wait
if $systemd_supported ; then
systemctl restart opendkim > $log_file 2>&1
systemctl reload opendkim > $log_file 2>&1
if [[ $? -eq 0 ]] ; then
echo_ok
else
@ -1256,7 +1256,7 @@ if $systemd_supported ; then
error "$(cat $log_file)"
fi
else
/etc/init.d/opendkim restart > $log_file 2>&1
/etc/init.d/opendkim reload > $log_file 2>&1
if [[ $? -eq 0 ]] ; then
echo_ok
else