]> git.ipfire.org Git - thirdparty/asterisk.git/commit
sd_notify (systemd status notifications) support 28/3928/1
authorTzafrir Cohen <tzafrir.cohen@xorcom.com>
Mon, 27 Jun 2016 19:26:54 +0000 (21:26 +0200)
committerGeorge Joseph <gjoseph@digium.com>
Tue, 20 Sep 2016 14:00:14 +0000 (08:00 -0600)
commit36092ee3a087e6c37bf4efcd101b324f1ba9fada
treeac29aa9d7f96cf21b20418f4990ea79d2d561ced
parent34461b89ace3742056100bb226a3c0c2d90ca5ff
sd_notify (systemd status notifications) support

sd_notify() is used to notify systemd of changes to the status of the
process. This allows the systemd daemon to know when the process
finished loading (and thus only start another program after Asterisk has
finished loading).

To use this, use a systemd unit with 'Type=notify' for Asterisk.

This commit also adds the function ast_sd_notify(), a wrapper around
sd_notify that does nothing if not built with systemd support.

Also adds support for libsystemd detection in the configure script.

Change-Id: Ied6a59dafd5ef331c5c7ae8f3ccd2dfc94be7811
(cherry picked from commit 07b95f7c65b7c083724f1af2b26f93cc22cad58c)
CHANGES
configure
configure.ac
include/asterisk/autoconfig.h.in
include/asterisk/io.h
main/Makefile
main/asterisk.c
main/io.c
main/loader.c
makeopts.in