From 228239bbae9e7efce30fc8c5502f10fe2ad2005d Mon Sep 17 00:00:00 2001 From: f Date: Wed, 23 Nov 2022 12:18:26 -0300 Subject: [PATCH] feat: syslogize --- monit.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/monit.conf b/monit.conf index ded4fec..f3fee86 100644 --- a/monit.conf +++ b/monit.conf @@ -1,6 +1,6 @@ check process knot with pidfile /tmp/knot.pid - start program = "/usr/sbin/knotd -d" - stop program = "/usr/sbin/knotc stop" + start program = "/usr/local/bin/syslogize /usr/sbin/knotd -d" + stop program = "/usr/local/bin/syslogize /usr/sbin/knotc stop" 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