[systemd-devel] what is sd_notify() really for ?
Lennart Poettering
lennart at poettering.net
Sun Apr 16 22:04:17 UTC 2017
On Sun, 16.04.17 23:48, Enrico Weigelt, metux IT consult (enrico.weigelt at gr13.net) wrote:
> Hi folks,
>
>
> I just wonder what sd_notify()+friends is really for. What does the
> service manager actually do with that information?
>
> Is this just informational or does it do certain decisions (eg.
> starting/stopping other depending services, etc) on that ?
>
> Is this somehow related to systems monitoring (like eg.nagios does) ?
>
> What is the meaning of the optional PID here ? Can one process send
> notifications on behalf of another ?
>
> A few examples of real world usecases would be very helpful.
Please always check the man pages if you have questions regarding a
specific systemd interface:
https://www.freedesktop.org/software/systemd/man/sd_notify.html
It provides an overview of the various messages, and comes with
examples. It should answer all your questions.
Lennart
--
Lennart Poettering, Red Hat
More information about the systemd-devel
mailing list