sdnotify

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2026 License: AGPL-3.0 Imports: 4 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package sdnotify is a minimal sd_notify(3): it tells systemd the sensor is ready and pings the watchdog, over the datagram socket systemd names in NOTIFY_SOCKET. Outside a Type=notify unit every call is a no-op.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Notify

func Notify(state string) (bool, error)

Notify sends state (e.g. "READY=1") to systemd. It reports false, nil when NOTIFY_SOCKET is unset.

func NotifyTo

func NotifyTo(path, state string) (bool, error)

NotifyTo sends state to the socket at path. A leading "@" is an abstract socket.

func WatchdogInterval

func WatchdogInterval() time.Duration

WatchdogInterval is the watchdog timeout systemd set for this process (WATCHDOG_USEC, checked against WATCHDOG_PID), or 0 when there is none.

Types

This section is empty.

Jump to

Keyboard shortcuts

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