chiark / gitweb /
sd-daemon: introduce sd_watchdog_enabled() for parsing $WATCHDOG_USEC
authorLennart Poettering <lennart@poettering.net>
Sun, 22 Dec 2013 21:14:05 +0000 (22:14 +0100)
committerLennart Poettering <lennart@poettering.net>
Sun, 22 Dec 2013 21:19:03 +0000 (22:19 +0100)
commit09812eb764b440651f3ff4cb5d37bd343f800560
tree75a7a86e915c814ded076cd0efc84d20018ff13b
parent565a9388f261c6e459e1726e358284ff687ec941
sd-daemon: introduce sd_watchdog_enabled() for parsing $WATCHDOG_USEC

Also, introduce a new environment variable named $WATCHDOG_PID which
cotnains the PID of the process that is supposed to send the keep-alive
events. This is similar how $LISTEN_FDS and $LISTEN_PID work together,
and protects against confusing processes further down the process tree
due to inherited environment.
14 files changed:
Makefile-man.am
man/sd-daemon.xml
man/sd_notify.xml
man/sd_watchdog_enabled.xml [new file with mode: 0644]
src/core/execute.c
src/core/execute.h
src/core/mount.c
src/core/service.c
src/core/socket.c
src/core/swap.c
src/libsystemd-bus/sd-event.c
src/libsystemd-daemon/libsystemd-daemon.sym
src/libsystemd-daemon/sd-daemon.c
src/systemd/sd-daemon.h