diff --git a/install_update_dovecot.sh b/install_update_dovecot.sh index 9d1ca2d..d99a404 100755 --- a/install_update_dovecot.sh +++ b/install_update_dovecot.sh @@ -2205,7 +2205,12 @@ EOF fatal "Creating file /etc/rsyslog.d/dovecot.conf failed" fi - /etc/init.d/rsyslog restart > /dev/null 2>&1 + echononl "\tRestart rsyslog Servive" + if $systemd_support ; then + systemctl restart rsyslog.service > /dev/null 2>&1 + else + /etc/init.d/rsyslog restart > /dev/null 2>&1 + fi if [ "$?" = 0 ]; then echo -e "$rc_done" else