compositor: systemd notifications support

Graphics / Wayland / Weston - Egor Starkov [ge.com] - 25 September 2015 17:11 UTC

Add systemd status and watchdog notification support. Feature is not compiled by default and can be enabled by "--enable-systemd-notify" configuration flag. It compiles into module "systemd-notify.so" and can be loaded by adding it in weston.ini like any other module, i.e. "modules=systemd-notify.so". Watchdog timeout equals to half of timeout defined by "WATCHDOG_USEC" environment
variable, which is set by "WatchdogSec=" setting in service file.

7ce2e97 compositor: systemd notifications support
Makefile.am | 19 +++++++-
configure.ac | 13 ++++++
src/main.c | 1 +
src/systemd-notify.c | 123 ++++++++++++++++++++++++++++++++++++++++++++++++++
src/systemd-notify.h | 47 +++++++++++++++++++
5 files changed, 202 insertions(+), 1 deletion(-)

Upstream: cgit.freedesktop.org


  • Share