diff options
author | Minkyung <kmk3210@gmail.com> | 2016-06-22 20:26:05 +0900 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2016-06-22 13:26:05 +0200 |
commit | 2787d83c28b7565ea6f80737170514e5e6186917 (patch) | |
tree | 78910bf9c24cdccf67e34d2a1200d207f0890eef /src/systemd | |
parent | 5cd118bab0c6f2f87236959b2a68098c5ba95c2e (diff) | |
download | systemd-2787d83c28b7565ea6f80737170514e5e6186917.tar.gz |
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.
Diffstat (limited to 'src/systemd')
-rw-r--r-- | src/systemd/sd-daemon.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/systemd/sd-daemon.h b/src/systemd/sd-daemon.h index e6787b0a64..740b176903 100644 --- a/src/systemd/sd-daemon.h +++ b/src/systemd/sd-daemon.h @@ -196,6 +196,11 @@ int sd_is_mq(int fd, const char *path); invocation. This variable is only supported with sd_pid_notify_with_fds(). + WATCHDOG_USEC=... + Reset watchdog_usec value during runtime. + To reset watchdog_usec value, start the service again. + Example: "WATCHDOG_USEC=20000000" + Daemons can choose to send additional variables. However, it is recommended to prefix variable names not listed above with X_. |