containers-knot/monit.conf

7 lines
385 B
Plaintext
Raw Normal View History

2020-09-12 22:42:22 +00:00
check process knot with pidfile /tmp/knot.pid
2022-11-23 15:18:26 +00:00
start program = "/usr/local/bin/syslogize /usr/sbin/knotd -d"
stop program = "/usr/local/bin/syslogize /usr/sbin/knotc stop"
2020-09-12 22:42:22 +00:00
if 5 restarts within 8 cycles then alert
if failed port 53 type udp protocol dns for 3 times within 5 cycles then restart
if failed port 53 type tcp protocol dns for 3 times within 5 cycles then restart