Fix watchdog
This commit is contained in:
parent
801dc967f8
commit
87794ee634
@ -192,10 +192,12 @@ func ActionServe(c *cli.Context) error {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
loggers.rootLogger.Debug("Sent WATCHDOG_USEC=10000000 to NOTIFY_SOCKET.")
|
loggers.rootLogger.Debug("Sent WATCHDOG_USEC=10000000 to NOTIFY_SOCKET.")
|
||||||
if _, err := daemon.SdNotify(false, "WATCHDOG_USEC=10000000"); err != nil {
|
if _, err := daemon.SdNotify(false, daemon.SdNotifyWatchdog); err != nil {
|
||||||
loggers.rootLogger.Warnw("Unable to connect to NOTIFY_SOCKET to set watchdog timeout.", "error", err)
|
loggers.rootLogger.Warnw("Unable to connect to NOTIFY_SOCKET to notify watchdog.", "error", err)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Setup timer
|
||||||
timeout, err := daemon.SdWatchdogEnabled(false)
|
timeout, err := daemon.SdWatchdogEnabled(false)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
loggers.rootLogger.Warnw("Unable to connect to NOTIFY_SOCKET to get watchdog timeout.", "error", err)
|
loggers.rootLogger.Warnw("Unable to connect to NOTIFY_SOCKET to get watchdog timeout.", "error", err)
|
||||||
|
@ -5,7 +5,7 @@ import (
|
|||||||
"runtime"
|
"runtime"
|
||||||
)
|
)
|
||||||
|
|
||||||
var Version = "v0.1.22"
|
var Version = "v0.1.23"
|
||||||
var Build string
|
var Build string
|
||||||
|
|
||||||
func FullVersion() string {
|
func FullVersion() string {
|
||||||
|
Loading…
Reference in New Issue
Block a user