Clone this repo:

Branches

  1. b35f7fc copy and delete srvcfg-mgr.json file instead of rename by Andrew Geissler · 3 weeks ago master
  2. 4d4afc3 ensure persistent settings only used on startup by Andrew Geissler · 7 weeks ago
  3. 51ce6e3 use settings from persistent files if available by Andrew Geissler · 6 months ago
  4. cb0f134 write service and socket values to file by Andrew Geissler · 7 months ago
  5. 67e4186 move srvcfg-mgr.json file to /var by Andrew Geissler · 7 months ago

Service config manager

The service config manager provides a D-Bus interface to manage BMC services as described by the service management D-Bus interfaces.

The configuration settings are intended to persist across BMC reboots.

An example use case for this service is BMCWeb's implementation of the Redfish NetworkProtocol schema.

Design

Implementation details are described in the D-Bus interface README.

The service config manager generally makes configuration changes to systemd units via D-Bus interfaces.

The design pattern to add new services or controls is:

  • Determine if the service you want to control is socket activated.
  • To control the Running and Enabled properties of a service:
    • For a service which uses socket activation, control the socket.
    • For other services, control the service unit itself.