diff options
author | AppaRao Puli <apparao.puli@linux.intel.com> | 2020-06-13 16:31:29 +0300 |
---|---|---|
committer | AppaRao Puli <apparao.puli@linux.intel.com> | 2020-06-29 07:21:31 +0300 |
commit | 7f4eb5887f9a52a2832ee9b6e06749575903128a (patch) | |
tree | 687e4aa39ced8c2164e9518df87cecf713acd0b9 /src/webserver_main.cpp | |
parent | 4cde5d90f690fad956407fb759c03c09da002026 (diff) | |
download | bmcweb-7f4eb5887f9a52a2832ee9b6e06749575903128a.tar.xz |
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>
Diffstat (limited to 'src/webserver_main.cpp')
-rw-r--r-- | src/webserver_main.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/webserver_main.cpp b/src/webserver_main.cpp index 738fb28095..11e8e925a8 100644 --- a/src/webserver_main.cpp +++ b/src/webserver_main.cpp @@ -118,6 +118,15 @@ int main(int argc, char** argv) 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(); |