summaryrefslogtreecommitdiff
path: root/src/Instance.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2018-08-02 11:15:35 +0200
committerMax Kellermann <max@musicpd.org>2018-08-02 11:15:35 +0200
commita31da51fd9bd215645b9cabce5fefa449ca14c90 (patch)
treee320d144db30fade309650e598930422824ac032 /src/Instance.cxx
parentcf471e830ffd9dc417aeb5e85a9bbbfbd6d18b09 (diff)
lib/systemd/Watchdog: implement the systemd watchdog protocol
Diffstat (limited to 'src/Instance.cxx')
-rw-r--r--src/Instance.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Instance.cxx b/src/Instance.cxx
index b3595e995..f208ca194 100644
--- a/src/Instance.cxx
+++ b/src/Instance.cxx
@@ -41,6 +41,9 @@
Instance::Instance()
:rtio_thread(true),
+#ifdef ENABLE_SYSTEMD_DAEMON
+ systemd_watchdog(event_loop),
+#endif
idle_monitor(event_loop, BIND_THIS_METHOD(OnIdle))
{
}