diff --git a/core/nginx/config.py b/core/nginx/config.py index e8790bcd..96723007 100755 --- a/core/nginx/config.py +++ b/core/nginx/config.py @@ -53,9 +53,6 @@ if args["TLS"] and not all(os.path.exists(file_path) for file_path in args["TLS" conf.jinja("/conf/tls.conf", args, "/etc/nginx/tls.conf") conf.jinja("/conf/proxy.conf", args, "/etc/nginx/proxy.conf") conf.jinja("/conf/nginx.conf", args, "/etc/nginx/nginx.conf") -if os.path.exists("/var/run/nginx.pid"): - os.system("nginx -s reload") conf.jinja("/dovecot_conf/login.lua", args, "/etc/dovecot/login.lua") conf.jinja("/dovecot_conf/proxy.conf", args, "/etc/dovecot/proxy.conf") -if os.path.exists("/run/dovecot/master.pid"): - os.system("doveadm reload") +os.system("killall -HUP nginx dovecot") diff --git a/towncrier/newsfragments/3179.bugfix b/towncrier/newsfragments/3179.bugfix new file mode 100644 index 00000000..2cd39438 --- /dev/null +++ b/towncrier/newsfragments/3179.bugfix @@ -0,0 +1 @@ +Ensure that nginx and dovecot are reloaded