Add persistency for events
Persist event D-bus objects using cereal
Resolves openbmc/openbmc#2319
Change-Id: Ifa15d944fe1d1026761f65eeb647dcbdf6afdba0
Signed-off-by: Dhruvaraj Subhashchandran <dhruvaraj@in.ibm.com>
diff --git a/src/main.cpp b/src/main.cpp
index 5e191e1..68cef3e 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -43,6 +43,8 @@
sdbusplus::server::manager::manager objManager(bus, OBJ_EVENT);
bus.request_name(BUSNAME_EVENT);
+ phosphor::events::getManager().restore();
+
for (auto& watch : ConfigPropertyWatches::get())
{
watch->start();