From e417053364cd31fc7aaac71f1a3a377b57ebef53 Mon Sep 17 00:00:00 2001 From: missytake Date: Mon, 22 Sep 2025 13:12:10 +0200 Subject: [PATCH 1/2] echobot: restart after postfix + dovecot were started fix #641 --- cmdeploy/src/cmdeploy/__init__.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cmdeploy/src/cmdeploy/__init__.py b/cmdeploy/src/cmdeploy/__init__.py index 0b5260104..a90f12670 100644 --- a/cmdeploy/src/cmdeploy/__init__.py +++ b/cmdeploy/src/cmdeploy/__init__.py @@ -810,6 +810,12 @@ def deploy_chatmail(config_path: Path, disable_mail: bool) -> None: restarted=nginx_need_restart, ) + systemd.service( + name="Restart echobot if postfix or dovecot were just started", + service="echobot.service", + restarted=postfix_need_restart || dovecot_need_restart, + ) + # This file is used by auth proxy. # https://wiki.debian.org/EtcMailName server.shell( From 69a8c905658349096cae1b0d4068a63883fe80fd Mon Sep 17 00:00:00 2001 From: missytake Date: Thu, 25 Sep 2025 08:43:01 +0200 Subject: [PATCH 2/2] cmdeploy: restart echobot only if dovecot *and* postfix were restarted --- cmdeploy/src/cmdeploy/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmdeploy/src/cmdeploy/__init__.py b/cmdeploy/src/cmdeploy/__init__.py index a90f12670..be7932aaa 100644 --- a/cmdeploy/src/cmdeploy/__init__.py +++ b/cmdeploy/src/cmdeploy/__init__.py @@ -811,9 +811,9 @@ def deploy_chatmail(config_path: Path, disable_mail: bool) -> None: ) systemd.service( - name="Restart echobot if postfix or dovecot were just started", + name="Restart echobot if postfix and dovecot were just started", service="echobot.service", - restarted=postfix_need_restart || dovecot_need_restart, + restarted=postfix_need_restart and dovecot_need_restart, ) # This file is used by auth proxy.