From 012eb61c523fe15068b86e86ef86cf8b43173937 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Guillot?= Date: Sat, 22 May 2021 20:25:38 -0700 Subject: [PATCH] Tweak watchdog --- cli/daemon.go | 2 +- packaging/systemd/miniflux.service | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cli/daemon.go b/cli/daemon.go index f312d49e..bdadf9ed 100644 --- a/cli/daemon.go +++ b/cli/daemon.go @@ -70,7 +70,7 @@ func startDaemon(store *storage.Storage) { systemd.SdNotify(systemd.SdNotifyWatchdog) } - time.Sleep(interval / 2) + time.Sleep(interval / 3) } }() } diff --git a/packaging/systemd/miniflux.service b/packaging/systemd/miniflux.service index 1f36f5c9..8c860ce0 100644 --- a/packaging/systemd/miniflux.service +++ b/packaging/systemd/miniflux.service @@ -17,7 +17,7 @@ User=miniflux Type=notify # https://www.freedesktop.org/software/systemd/man/systemd.service.html#WatchdogSec= -WatchdogSec=30s +WatchdogSec=60s WatchdogSignal=SIGKILL # https://www.freedesktop.org/software/systemd/man/systemd.service.html#Restart=