diff options
author | Richard Marian Thomaiyar <richard.marian.thomaiyar@linux.intel.com> | 2019-01-28 18:25:37 +0300 |
---|---|---|
committer | Richard Marian Thomaiyar <richard.marian.thomaiyar@linux.intel.com> | 2019-02-13 11:34:44 +0300 |
commit | 89414bbd6e04d7a027740879edc6cde7ae66c47a (patch) | |
tree | 6fef825a40ab8109504fbbb3f3591aa51a07e87f /srvcfg-manager | |
parent | 267b0e891f98e055c6c59c8d903cee73131cb9c9 (diff) | |
download | provingground-89414bbd6e04d7a027740879edc6cde7ae66c47a.tar.xz |
Fix: srvcfg-manager - ObjectManager base path
Create ObjectManager under root base path for srvcfg
/xyz/openbmc_project/control/service, so that
dynamic detection of service name can be performed under
the above path with org.freedesktop.DBus.ObjectManager
interface
Unit-Test:
1. Verified that service executes fine after this change
2. Verified the detection of service name using GetObject
from ObjectMapper
Tested-by:
1. Verified the bmccontrolsevice ipmi command to initiate
the https disable
Change-Id: Id46f5bb348039bdeb69ece079ffeec45e88011cc
Signed-off-by: Richard Marian Thomaiyar <richard.marian.thomaiyar@linux.intel.com>
Diffstat (limited to 'srvcfg-manager')
-rw-r--r-- | srvcfg-manager/src/main.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/srvcfg-manager/src/main.cpp b/srvcfg-manager/src/main.cpp index ffb0e11..abbb0b3 100644 --- a/srvcfg-manager/src/main.cpp +++ b/srvcfg-manager/src/main.cpp @@ -29,7 +29,11 @@ int main() auto conn = std::make_shared<sdbusplus::asio::connection>(io);
timer = std::make_shared<boost::asio::deadline_timer>(io);
conn->request_name(phosphor::service::serviceConfigSrvName);
- auto server = sdbusplus::asio::object_server(conn);
+ auto server = sdbusplus::asio::object_server(conn, true);
+ auto mgrInterface =
+ server.add_interface("/xyz/openbmc_project/control/service", "");
+ mgrInterface->initialize();
+ server.add_manager("/xyz/openbmc_project/control/service");
for (const auto &service : serviceList)
{
std::string objPath("/xyz/openbmc_project/control/service/" +
|