From f956a51f78a36bddd4ab19a073b2413206d01581 Mon Sep 17 00:00:00 2001 From: boksbc Date: Mon, 20 Oct 2025 21:49:06 +0200 Subject: [PATCH] Dovecot Systax Problem --- scripts/95-woltguard.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/95-woltguard.sh b/scripts/95-woltguard.sh index cb41f4d..560c7bf 100644 --- a/scripts/95-woltguard.sh +++ b/scripts/95-woltguard.sh @@ -111,8 +111,10 @@ check process redis with pidfile /run/redis/redis-server.pid start program = "/bin/systemctl start redis-server" stop program = "/bin/systemctl stop redis-server" if failed host 127.0.0.1 port 6379 for 2 cycles then restart - if failed program "/usr/local/sbin/mw-redis-ping.sh" for 2 cycles then restart if 5 restarts within 5 cycles then alert + +check program redis_ping path "/usr/local/sbin/mw-redis-ping.sh" + if status != 0 for 2 cycles then exec "/bin/systemctl restart redis-server" EOF cat >/etc/monit/conf.d/rspamd.conf <<'EOF'