Fix 3420 - fixed syntax errors in certwatcher.py

(cherry picked from commit c4f457e7f9)
This commit is contained in:
Dimitri Huisman
2024-09-09 13:01:12 +00:00
committed by Mergify
parent 46514c082e
commit 883af43f7a
2 changed files with 3 additions and 2 deletions

View File

@@ -27,9 +27,9 @@ class ChangeHandler(FileSystemEventHandler):
if exists("/var/run/nginx.pid"): if exists("/var/run/nginx.pid"):
print("Reloading a running nginx") print("Reloading a running nginx")
system("nginx -s reload") system("nginx -s reload")
if os.path.exists("/run/dovecot/master.pid"): if exists("/run/dovecot/master.pid"):
print("Reloading a running dovecot") print("Reloading a running dovecot")
os.system("doveadm reload") system("doveadm reload")
@staticmethod @staticmethod
def reexec_config(): def reexec_config():

View File

@@ -0,0 +1 @@
The reload functionality of nginx/dovecot upon change of the certificates failed with an error.