summaryrefslogtreecommitdiffstats
path: root/src/main.cpp
diff options
context:
space:
mode:
authorDhruvaraj Subhashchandran <dhruvaraj@in.ibm.com>2017-10-18 01:41:51 -0500
committerBrad Bishop <bradleyb@fuzziesquirrel.com>2018-04-11 05:05:20 +0000
commit6524b9d8385919276d21471bec4352b00146c2d0 (patch)
tree6e6097c7c798ef96cd03b2864a8de908606925ca /src/main.cpp
parent06fdaff4bbfadf84123d5275433318e82643807a (diff)
downloadphosphor-dbus-monitor-6524b9d8385919276d21471bec4352b00146c2d0.tar.gz
phosphor-dbus-monitor-6524b9d8385919276d21471bec4352b00146c2d0.zip
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>
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp2
1 files changed, 2 insertions, 0 deletions
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 @@ int main(void)
sdbusplus::server::manager::manager objManager(bus, OBJ_EVENT);
bus.request_name(BUSNAME_EVENT);
+ phosphor::events::getManager().restore();
+
for (auto& watch : ConfigPropertyWatches::get())
{
watch->start();
OpenPOWER on IntegriCloud