eclipse-bluechi / bluechi

Eclipse BlueChi is a systemd service controller intended for multi-node environments with a predefined number of nodes and with a focus on highly regulated ecosystems such as those requiring functional safety.
https://bluechi.readthedocs.io/en/latest/
GNU Lesser General Public License v2.1
130 stars 37 forks source link

RFE: Add ListUnitFiles API #889

Closed engelmi closed 2 weeks ago

engelmi commented 4 months ago

Please describe what you would like to see

This RFE resulted from https://github.com/eclipse-bluechi/bluechi/issues/887.

Based on how systemctl list-units works, it is not possible to query services that aren't reference in any way (e.g. via RequiredBy = multi-user.target) or are active/failed. systemd's ListUnitFiles API can be used to address this issue and return a list of files. So in order to enable a more complete view of available services, a new API for listing unit files should be added to BlueChi.

Please describe the solution you'd like

Please describe your use case

For example, systemd services generated from quadlet files are not visible via ListUnits method (based on how systemctl list-units works). Using list-unit-files such service files can be queried as well.

trev-allison03 commented 2 months ago

Assign to me