phosphor-settingsd : Upcoming change won't no longer emit IA signals during startup
Hi Team,
As per the OpenBMC guidelines, applications are expected to request their D-Bus well-known name only after restoring any persisted D-Bus objects. The current phosphor-settingsd implementation does not follow this sequence.
I'm proposing the following change to request the D-Bus name after the manager object initialization: https://gerrit.openbmc.org/c/openbmc/phosphor-settingsd/+/88601
With this change, settingsd will no longer emit InterfacesAdded (IA) or PropertiesChanged (PC) signals during startup. Runtime behaviour remains unchanged, and these signals will continue to be emitted normally for runtime changes.
From my review of the OpenBMC repositories, phosphor-logging was the only component I found relying on IA signals from settingsd. That dependency has been addressed by changing it to monitor NameOwnerChanged instead:
https://gerrit.openbmc.org/c/openbmc/phosphor-logging/+/95058
Please write back if any of your components depend on IA signals from settingsd during startup.
For consumers that need to detect when settingsd becomes available, the recommended approach is to subscribe to NameOwnerChanged, filtered for the settingsd well-known name at the D-Bus daemon level (arg0=). This is also the approach used in the phosphor-logging change above.
If there are no additional dependencies or concerns, I'd like to proceed with merging the phosphor-settingsd change in about two weeks.
Please reach out if you have any questions or concerns.
Thanks,
Arya K Padman
OpenBMC Developer
Discord: aryakp