From 88f7ab48f77df24ecf136d22b494dd6db13f4ed4 Mon Sep 17 00:00:00 2001 From: Florent Daigniere Date: Thu, 27 Apr 2023 09:26:24 +0200 Subject: [PATCH] Deal with certwatcher too --- core/nginx/certwatcher.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/nginx/certwatcher.py b/core/nginx/certwatcher.py index e86fc9ec..0e83666e 100755 --- a/core/nginx/certwatcher.py +++ b/core/nginx/certwatcher.py @@ -27,6 +27,9 @@ class ChangeHandler(FileSystemEventHandler): if exists("/var/run/nginx.pid"): print("Reloading a running nginx") system("nginx -s reload") + if os.path.exists("/run/dovecot/master.pid"): + print("Reloading a running dovecot") + os.system("doveadm reload") @staticmethod def reexec_config():