---
name: "Munin::Common::Daemon"
section: "3pm"
platform: "linux"
package: "munin-node"
version: "2.0.76-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/Munin::Common::Daemon"
---

# Munin::Common::Daemon(3pm)

utilities for daemons.

## NAME

Munin::Common::Daemon - utilities for daemons.

## SYNOPSIS

The following daemon-related features are supported:

- sd\_notify: signal readiness of the daemon

  ## SUBROUTINES

### emit\_sd\_notify\_message

Example:

```
 emit_sd_notify_message();
```

Send a "ready" signal according to the `"sd_notify"` interface:

- 1\. check whether the environment variable "NOTIFY\_SOCKET" is defined

  - 2\. remove this variable from the environment (this interface is not propagated to children)

  - 3\. send the string "READY=1" to the socket

  The function returns silently, if something fails.

The function should be called as soon as the service is ready to accept requests. Calling this function is always safe - independent of the caller supporting the `"sd_notify"` interface or not.

Examples for callers supporting the `"sd_notify"` interface:

- systemd: see "Type=Notify" in "5" in systemd.exec

  - start-stop-daemon: see "--notify-await" in "8" in start-stop-daemon

  See the specification of "sd\_notify" \<https://www.freedesktop.org/software/systemd/man/sd\_notify.html\> for further details of this interface.
