X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=man%2Fsd_notify.xml;h=a15426c1d10c4eba93d8fda1cbc8ffef28b61910;hb=HEAD;hp=ae6792dd708185650163e9c2239edac8e8173b73;hpb=47f94046d2208b0ca48928df3ac3bce803361f23;p=elogind.git
diff --git a/man/sd_notify.xml b/man/sd_notify.xml
index ae6792dd7..a15426c1d 100644
--- a/man/sd_notify.xml
+++ b/man/sd_notify.xml
@@ -194,7 +194,7 @@
watchdog timestamp. This is the keep-alive ping that services
need to issue in regular intervals if
WatchdogSec= is enabled for it. See
- systemd.service5
+ elogind.service5
for information how to enable this functionality and
sd_watchdog_enabled3
for the details of how the service can check whether the
@@ -216,7 +216,7 @@
passing and /run. Note that the service manager will accept
messages for a service only if FileDescriptorStoreMax= is set
to non-zero for it (defaults to zero, see
- systemd.service5).
+ elogind.service5).
File descriptors must be pollable, see
epoll_ctl2.
Multiple arrays of file descriptors may be sent in separate messages, in which
@@ -265,9 +265,18 @@
Note that elogind will accept status data sent from a
service only if the NotifyAccess= option is
correctly set in the service definition file. See
- systemd.service5
+ elogind.service5
for details.
+ Note that sd_notify() notifications may be attributed to units correctly only if either
+ the sending process is still around at the time PID 1 processes the message, or if the sending process is
+ explicitly runtime-tracked by the service manager. The latter is the case if the service manager originally forked
+ off the process, i.e. on all processes that match NotifyAccess= or
+ NotifyAccess=. Conversely, if an auxiliary process of the unit sends an
+ sd_notify() message and immediately exits, the service manager might not be able to properly
+ attribute the message to the unit, and thus will ignore it, even if
+ NotifyAccess= is set for it.
+
sd_notifyf() is similar to
sd_notify() but takes a
printf()-like format string plus
@@ -392,13 +401,13 @@
See Also
- systemd1,
+ elogind8,
sd-daemon3,
sd_listen_fds3,
sd_listen_fds_with_names3,
sd_watchdog_enabled3,
daemon7,
- systemd.service5
+ elogind.service5