From 21109536737fbd46a5a3ddbe66bdd909cadc66af Mon Sep 17 00:00:00 2001 From: Christoph Date: Thu, 4 Jul 2024 00:38:36 +0200 Subject: [PATCH] install_update_dovecot.sh: fix minor error restarting rsyslog. --- install_update_dovecot.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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