Revision Date Author Comments
# f375fecc 21-Mar-2024 Potin Lai <potin.lai@quantatw.com>

meson: change install_dir to /usr/libexec/entity-manager

We notice a issue that if user accidentally execute fru-device and
terminate it after few second, the xyz.openbmc_project.FruDevice
busname w

meson: change install_dir to /usr/libexec/entity-manager

We notice a issue that if user accidentally execute fru-device and
terminate it after few second, the xyz.openbmc_project.FruDevice
busname will not exist on dbus, but the status of FruDevice.service is
still active running.

It because sdbusplus changes the behavior of request_name() and it
allows the busname can be replaced by new service. [1]

In order to avoid unexpected behavior by running service binary
accidentally, move the install_dir to /usr/libexec/entity-manager.

Tested result:
- EntityManager is still running normally after the change
```
root@bmc:~# systemctl status xyz.openbmc_project.EntityManager.service
● xyz.openbmc_project.EntityManager.service - Entity Manager
Loaded: loaded (/usr/lib/systemd/system/xyz.openbmc_project.EntityManager.service; enabled; preset: enabled)
Active: active (running) since Wed 2024-03-20 23:25:44 PDT; 27min ago
Process: 596 ExecStartPre=/bin/mkdir -p /var/configuration (code=exited, status=0/SUCCESS)
Process: 679 ExecStartPre=/bin/mkdir -p /tmp/overlays (code=exited, status=0/SUCCESS)
Main PID: 687 (entity-manager)
CPU: 7.203s
CGroup: /system.slice/xyz.openbmc_project.EntityManager.service
└─687 /usr/libexec/entity-manager/entity-manager
```
- FruDevice is still running normally after the change
```
root@bmc:~# systemctl status xyz.openbmc_project.FruDevice.service
● xyz.openbmc_project.FruDevice.service - Fru Device
Loaded: loaded (/usr/lib/systemd/system/xyz.openbmc_project.FruDevice.service; enabled; preset: enabled)
Active: active (running) since Wed 2024-03-20 23:25:40 PDT; 28min ago
Main PID: 598 (fru-device)
CPU: 729ms
CGroup: /system.slice/xyz.openbmc_project.FruDevice.service
└─598 /usr/libexec/entity-manager/fru-device
```

[1] https://github.com/openbmc/sdbusplus/commit/946c940434a7d5403f469ce2ab56f9136293ff38

Signed-off-by: Potin Lai <potin.lai@quantatw.com>
Change-Id: I01c1f0fe7a1bdbaf74ec4d080b62450f4a90a057

show more ...


# 9c7fd646 04-Nov-2020 Brad Bishop <bradleyb@fuzziesquirrel.com>

dbus: add dbus activation support

Add support for dbus activation of entity manager. Enabling dbus
activation consists of a few simple steps:

- Add an activation configuration in /usr/share/dbus-

dbus: add dbus activation support

Add support for dbus activation of entity manager. Enabling dbus
activation consists of a few simple steps:

- Add an activation configuration in /usr/share/dbus-1/system-services
that maps the dbus service name to the correct systemd service
- Add a service alias for the service to be dbus activated. This
allows dbus activation to be enabled/disabled independently of
whether the service is started at boot by systemd[1].

[1]https://dbus.freedesktop.org/doc/dbus-specification.html

Tested: systemctl stop xyz.openbmc_project.EntityManager && busctl tree
xyz.openbmc_project.EntityManager / works
Change-Id: If7dc7f19a19c0ef59370d899f7f67ad6d11064e0
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>

show more ...


# 3649678c 04-Nov-2020 Brad Bishop <bradleyb@fuzziesquirrel.com>

systemd: install in multi-user.target

Installing in basic.target adds an ordering dependency on every single
unit to entity-manager and fru device. Avoid all these unnecessary
implicit dependencies

systemd: install in multi-user.target

Installing in basic.target adds an ordering dependency on every single
unit to entity-manager and fru device. Avoid all these unnecessary
implicit dependencies by installing in multi-user instead.

Testing consisted of booting a rainier bmc to multi-user with any
issues. It should be noted that the rainier target has very few
applications with dependencies on entity-manager and does not presently
use fru-device at all.

Change-Id: Ieb4e638b16839705555cfd699cf735a84478e4b2
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>

show more ...


# 10cd4393 04-Nov-2020 Brad Bishop <bradleyb@fuzziesquirrel.com>

entity-manager: systemd: use dbus instead of simple

Use systemd service type dbus instead of simple. This avoids entity
manager client applications that have correctly ordered themselves after
enti

entity-manager: systemd: use dbus instead of simple

Use systemd service type dbus instead of simple. This avoids entity
manager client applications that have correctly ordered themselves after
entity manager from attempting to connect before it has claimed a bus
name.

When Type=dbus, systemd automatically adds an implicit dependency on
dbus.socket (so remove the unnecessary dependency on dbus.service).

Tested: systemctl restart xyz.openbmc_project.EntityManager works
Change-Id: I450b4ce28d87dfad9143b8b20cd9445e00dd07b0
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>

show more ...


# dd9c79be 28-Mar-2019 Patrick Venture <venture@google.com>

build: install into bin instead of sbin

Installs into bin instead of sbin per guidelines.

Signed-off-by: Patrick Venture <venture@google.com>
Change-Id: I049a33c7102d97110cf5ccf13fec1ad694e33246


# 9b8ece15 03-Jan-2019 James Feist <james.feist@linux.intel.com>

Remove condition from service files

These don't provide anything useful and aren't working
currently. Remove them to remove the error.

Change-Id: I24b6a14ff9d585730095ed7fe5ebcd02a187f64a
Signed-of

Remove condition from service files

These don't provide anything useful and aren't working
currently. Remove them to remove the error.

Change-Id: I24b6a14ff9d585730095ed7fe5ebcd02a187f64a
Signed-off-by: James Feist <james.feist@linux.intel.com>

show more ...


# 8ca70868 02-Nov-2018 Radivoje Jovanovic <radivoje.jovanovic@intel.com>

remove entity-manager service dependency to the FRU service

Change-Id: I09667a6bbab75a4cf27cb3c2b0c28225821dd59b
Signed-off-by: Radivoje Jovanovic <radivoje.jovanovic@intel.com>


# ce4367c6 16-Oct-2018 James Feist <james.feist@linux.intel.com>

Move service files into repo and clean up OVERLAYS

Upstream request is to have service files in repo now.
Also limit scope of OVERLAYS flag to allow exports to
still work.

Change-Id: I61c8621a64855

Move service files into repo and clean up OVERLAYS

Upstream request is to have service files in repo now.
Also limit scope of OVERLAYS flag to allow exports to
still work.

Change-Id: I61c8621a648556d277d4faf3dfe38a61343053ce
Signed-off-by: James Feist <james.feist@linux.intel.com>

show more ...