Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrSdNotifyNoSocket = errors.New("No socket")
ErrSdNotifyNoSocket is the error returned when the NOTIFY_SOCKET does not exist.
View Source
var ErrWatchdogUsecNotSet = errors.New("WATCHDOG_USEC env variable is not set")
ErrWatchdogUsecNotSet is returned when the WATCHDOG_USEC env variable is not set.
Functions ¶
func DoWatchdog ¶
DoWatchdog runs check twice every WatchdogInterval until the context closes. If check returns nil then the systemd watchdog is called.
func Reloading ¶
func Reloading() error
Reloading sends RELOADING=1\nMONOTONIC_USEC=<monotonic_time> to the systemd notify socket.
func WatchdogInterval ¶
WatchdogInterval finds the watchdog interval set by systemd.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.