systemdnotify

package
v4.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 18, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package systemdnotify reports service liveness to systemd.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Notifier

type Notifier struct {
	// contains filtered or unexported fields
}

Notifier reports agent liveness to its systemd service manager. It is inert when the systemd watchdog is disabled.

func New

func New() (*Notifier, error)

New returns a notifier configured from the current systemd environment.

func (*Notifier) Watchdog

func (n *Notifier) Watchdog() error

Watchdog tells systemd that the agent remains healthy.

func (*Notifier) WatchdogInterval

func (n *Notifier) WatchdogInterval() time.Duration

WatchdogInterval returns the maximum time systemd permits between watchdog notifications. A zero duration means the watchdog is disabled.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL