From 42371444274042e776e0ff64cf6d37f57518201d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABl=20PORTAY?= Date: Fri, 4 Oct 2024 17:35:24 +0200 Subject: [PATCH] Add systemd watchdog support MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add possibility to send keep-alive ping to systemd watchdog. Also update notify service file to ping service manager every 3 minutes; mosquitto pings actually every 1 minute and 30 seconds (half period). Signed-off-by: Gaƫl PORTAY --- service/systemd/mosquitto.service.notify | 1 + 1 file changed, 1 insertion(+) diff --git a/service/systemd/mosquitto.service.notify b/service/systemd/mosquitto.service.notify index 06772dda..e85daa62 100644 --- a/service/systemd/mosquitto.service.notify +++ b/service/systemd/mosquitto.service.notify @@ -6,6 +6,7 @@ Wants=network.target [Service] Type=notify +WatchdogSec=3min NotifyAccess=main ExecStart=/usr/sbin/mosquitto -c /etc/mosquitto/mosquitto.conf ExecReload=/bin/kill -HUP $MAINPID