Applications must use service manager daemon to configure services like phosphor-ipmi-net, web, SSH etc. service in the system, instead of directly controlling the same using 'systemd' or 'iptables'. This way client applications doesn't need to change to configure services, when the implementations differ.
Service manager daemon, will create objects for configurable service in the system under object path /xyz/openbmc_project/Control/Service/<object>
. Each service object can be handled through 'org.freedesktop.DBus.ObjectManager'. Service object will expose following properties.
Implementations can elect to implement service manager daemon either through 'systemctl' (override.conf) or implement the same through 'iptables' logic, of disabling the port, updating the port etc.
Webserver can update the RMCP+ port number from default 623 to different one, by updating the Port
property value under path /xyz/openbmc_project/Control/ Service/netipmid
through interface xyz.openbmc_project.Control.Service. Attributes
.
In order to update the property value, override.conf
file under /etc/systemd /system/<Service unit name>/
has to be updated and service unit has to be restarted through org.freedesktop.systemd1
.