diff --git a/scripts/95-woltguard.sh b/scripts/95-woltguard.sh index 560c7bf..47642bc 100644 --- a/scripts/95-woltguard.sh +++ b/scripts/95-woltguard.sh @@ -130,7 +130,7 @@ cat >/etc/monit/conf.d/opendkim.conf <<'EOF' check process opendkim with pidfile /run/opendkim/opendkim.pid start program = "/bin/systemctl start opendkim" stop program = "/bin/systemctl stop opendkim" - if does not exist file "/run/opendkim/opendkim.pid" then restart + if failed host 127.0.0.1 port 8891 type tcp for 2 cycles then restart if 5 restarts within 5 cycles then alert EOF