Tweak watchdog

This commit is contained in:
Frédéric Guillot 2021-05-22 20:25:38 -07:00
parent c4a56105ca
commit 012eb61c52
2 changed files with 2 additions and 2 deletions

View File

@ -70,7 +70,7 @@ func startDaemon(store *storage.Storage) {
systemd.SdNotify(systemd.SdNotifyWatchdog) systemd.SdNotify(systemd.SdNotifyWatchdog)
} }
time.Sleep(interval / 2) time.Sleep(interval / 3)
} }
}() }()
} }

View File

@ -17,7 +17,7 @@ User=miniflux
Type=notify Type=notify
# https://www.freedesktop.org/software/systemd/man/systemd.service.html#WatchdogSec= # https://www.freedesktop.org/software/systemd/man/systemd.service.html#WatchdogSec=
WatchdogSec=30s WatchdogSec=60s
WatchdogSignal=SIGKILL WatchdogSignal=SIGKILL
# https://www.freedesktop.org/software/systemd/man/systemd.service.html#Restart= # https://www.freedesktop.org/software/systemd/man/systemd.service.html#Restart=