]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/core/service.c
watchdog: Support changing watchdog_usec during runtime (#3492)
authorMinkyung <kmk3210@gmail.com>
Wed, 22 Jun 2016 11:26:05 +0000 (20:26 +0900)
committerLennart Poettering <lennart@poettering.net>
Wed, 22 Jun 2016 11:26:05 +0000 (13:26 +0200)
commit2787d83c28b7565ea6f80737170514e5e6186917
tree78910bf9c24cdccf67e34d2a1200d207f0890eef
parent5cd118bab0c6f2f87236959b2a68098c5ba95c2e
watchdog: Support changing watchdog_usec during runtime (#3492)

Add sd_notify() parameter to change watchdog_usec during runtime.

Application can change watchdog_usec value by
sd_notify like this. Example. sd_notify(0, "WATCHDOG_USEC=20000000").

To reset watchdog_usec as configured value in service file,
restart service.

Notice.
sd_event is not currently supported. If application uses
sd_event_set_watchdog, or sd_watchdog_enabled, do not use
"WATCHDOG_USEC" option through sd_notify.
man/sd_notify.xml
src/core/service.c
src/core/service.h
src/systemd/sd-daemon.h