lib/systemd/Watchdog: implement the systemd watchdog protocol

This commit is contained in:
Max Kellermann
2018-08-02 11:15:35 +02:00
parent cf471e830f
commit a31da51fd9
8 changed files with 139 additions and 0 deletions

View File

@@ -26,6 +26,10 @@
#include "event/MaskMonitor.hxx"
#include "Compiler.h"
#ifdef ENABLE_SYSTEMD_DAEMON
#include "lib/systemd/Watchdog.hxx"
#endif
#ifdef ENABLE_CURL
#include "RemoteTagCacheHandler.hxx"
#endif
@@ -89,6 +93,10 @@ struct Instance final
*/
EventThread rtio_thread;
#ifdef ENABLE_SYSTEMD_DAEMON
Systemd::Watchdog systemd_watchdog;
#endif
MaskMonitor idle_monitor;
#ifdef ENABLE_NEIGHBOR_PLUGINS