]> git.ipfire.org Git - thirdparty/systemd.git/commit
core: immediately trigger watchdog action on WATCHDOG=trigger
authorJan Klötzke <Jan.Kloetzke@preh.de>
Wed, 7 Mar 2018 13:16:49 +0000 (14:16 +0100)
committerLennart Poettering <lennart@poettering.net>
Wed, 24 Apr 2019 08:17:10 +0000 (10:17 +0200)
commit99b43caf26787ac9376e10c14f6a5bcf056f900c
treef6a5b5fa7f87664876e23bbda4641b3458765f68
parent1329fee5da676a0d489416aade59060469a46c43
core: immediately trigger watchdog action on WATCHDOG=trigger

A service might be able to detect errors by itself that may require the
system to take the same action as if the service locked up. Add a
WATCHDOG=trigger state change notification to sd_notify() to let the
service manager know about the self-detected misery and instantly
trigger the configured watchdog behaviour.
man/sd_notify.xml
src/core/service.c