mirror of https://github.com/miniflux/v2.git
Tweak watchdog
This commit is contained in:
parent
c4a56105ca
commit
012eb61c52
|
@ -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)
|
||||||
}
|
}
|
||||||
}()
|
}()
|
||||||
}
|
}
|
||||||
|
|
|
@ -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=
|
||||||
|
|
Loading…
Reference in New Issue