Notify API¶
Pure-Python implementation of the sd_notify(3) protocol. Send
lifecycle notifications to systemd from a Type=notify service
without any C dependencies.
SystemdNotifier¶
systemd_client.notify.SystemdNotifier
¶
Send sd_notify(3) messages to systemd.
Source code in src/systemd_client/notify.py
available
property
¶
Whether $NOTIFY_SOCKET is set (i.e., running under systemd Type=notify).
__init__()
¶
notify(state)
¶
Send a raw notification string. Returns True if sent, False otherwise.