Fix 3420 - fixed syntax errors in certwatcher.py

This commit is contained in:
Dimitri Huisman
2024-09-09 13:01:12 +00:00
parent ce02f19110
commit c4f457e7f9
2 changed files with 3 additions and 2 deletions

View File

@@ -27,9 +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"):
if exists("/run/dovecot/master.pid"):
print("Reloading a running dovecot")
os.system("doveadm reload")
system("doveadm reload")
@staticmethod
def reexec_config():