Skip to main content

Module notify

Module notify 

Source
Expand description

Service notification helpers

Wraps the systemd sd_notify protocol for service lifecycle notifications. The sd_notify transport is a plain datagram to NOTIFY_SOCKET, so it is supervisor-agnostic: ready() delivers READY=1 in every build (through the systemd crate where that feature is on, and through a nix datagram send otherwise), and stays a no-op only when NOTIFY_SOCKET is unset.

Functionsยง

ready
Notify systemd that service is ready
status
Notify systemd of current status
stopping
Notify systemd that service is stopping
watchdog
Ping the watchdog