fix docs - nginx "restart" to "reload"

https://github.com/chatmail/relay/pull/614#discussion_r2269896158
This commit is contained in:
Keonik1
2025-08-23 21:36:16 +03:00
committed by j4n
parent c605d1a465
commit 959afe6f14
2 changed files with 4 additions and 4 deletions

View File

@@ -175,8 +175,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

View File

@@ -156,8 +156,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