1Munin::Common::Daemon(3U)ser Contributed Perl DocumentatiMounnin::Common::Daemon(3)
2
3
4
6 Munin::Common::Daemon - utilities for daemons.
7
9 The following daemon-related features are supported:
10
11 sd_notify: signal readiness of the daemon
12
14 emit_sd_notify_message
15 Example:
16
17 emit_sd_notify_message();
18
19 Send a "ready" signal according to the "sd_notify" interface:
20
21 1. check whether the environment variable "NOTIFY_SOCKET" is defined
22 2. remove this variable from the environment (this interface is not
23 propagated to children)
24 3. send the string "READY=1" to the socket
25
26 The function returns silently, if something fails.
27
28 The function should be called as soon as the service is ready to accept
29 requests. Calling this function is always safe - independent of the
30 caller supporting the "sd_notify" interface or not.
31
32 Examples for callers supporting the "sd_notify" interface:
33
34 systemd: see "Type=Notify" in "5" in systemd.exec
35 start-stop-daemon: see "--notify-await" in "8" in start-stop-daemon
36
37 See the specification of "sd_notify"
38 <https://www.freedesktop.org/software/systemd/man/sd_notify.html> for
39 further details of this interface.
40
41
42
43perl v5.34.0 2022-01-20 Munin::Common::Daemon(3)