Revert "Revert "EventService: Add event log support with inotify""
This reverts commit 29d2a95ba12f8b5abed040df7fd59790d6ba2517.
Enable EventService back by fixing issue with
not having '/var/log/redfish' file.
Fix is at: https://gerrit.openbmc-project.xyz/#/c/openbmc/bmcweb/+/33639/
Tested:
- Along with above mentioned change, removed
'/var/log/redfish' file and restarted bmcweb. It works.
Change-Id: Ia908bbdf5b9a643afee212a526074f62372208dc
Signed-off-by: AppaRao Puli <apparao.puli@linux.intel.com>
diff --git a/src/webserver_main.cpp b/src/webserver_main.cpp
index 738fb28..11e8e92 100644
--- a/src/webserver_main.cpp
+++ b/src/webserver_main.cpp
@@ -118,6 +118,15 @@
redfish::RedfishService redfish(app);
+#ifndef BMCWEB_ENABLE_REDFISH_DBUS_LOG_ENTRIES
+ int rc = redfish::EventServiceManager::startEventLogMonitor(*io);
+ if (rc)
+ {
+ BMCWEB_LOG_ERROR << "Redfish event handler setup failed...";
+ return rc;
+ }
+#endif
+
app.run();
io->run();