Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
Munin::...::Daemon(3)  User Contributed Perl Documentation Munin::...::Daemon(3)

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 propa-
     gated 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 re-
     quests.  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/soft-
     ware/systemd/man/sd_notify.html> for further details of this interface.

perl v5.42.2			   2026-06-11		   Munin::...::Daemon(3)

Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=Munin::Common::Daemon&sektion=3&manpath=FreeBSD+Ports+15.1.quarterly>

home | help