From e1be8a24a19bde74b6feeaa6772a261f373ccf13 Mon Sep 17 00:00:00 2001 From: Keonik1 Date: Sat, 23 Aug 2025 18:06:53 +0300 Subject: [PATCH] change "restart nginx" to "reload nginx" https://github.com/chatmail/relay/pull/614#discussion_r2269896158 --- docker/files/setup_chatmail_docker.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker/files/setup_chatmail_docker.sh b/docker/files/setup_chatmail_docker.sh index c3dad371..bac3b88e 100755 --- a/docker/files/setup_chatmail_docker.sh +++ b/docker/files/setup_chatmail_docker.sh @@ -35,8 +35,8 @@ monitor_certificates() { current_hash=$(calculate_hash) if [[ "$current_hash" != "$previous_hash" ]]; then # TODO: add an option to restart at a specific time interval - echo "[INFO] Certificate's folder hash was changed, restarting nginx, dovecot and postfix services." - systemctl restart nginx.service + echo "[INFO] Certificate's folder hash was changed, reloading nginx, dovecot and postfix services." + systemctl reload nginx.service systemctl reload dovecot.service systemctl reload postfix.service previous_hash=$current_hash