Skip to content

Conversation

@marif-nexthop
Copy link
Contributor

Pre-submission checklist

  • I've ran the linters locally and fixed lint errors related to the files I modified in this PR. You can install the linters by running pip install -r requirements-dev.txt && pre-commit install
  • pre-commit run

Summary

Upgraded FBOSS Distro to support systemd services and add systemd service integration for platform_manager to enable automatic startup on boot.

  • Add services/platform_manager.service systemd unit file
  • Update build_image_in_container.sh to copy service files from services/ directory to the root overlay
  • Update config.sh to enable platform_manager.service during image build

Test Plan

  • Built PXE and ONIE images successfully
  • Verified service installs and enables correctly
  • Confirmed journald logging works
[# systemctl status platform_manager.service
platform_manager.service - FBOSS Platform Manager
     Loaded: loaded (/usr/lib/systemd/system/platform_manager.service; enabled; preset: disabled)
# journalctl -u platform_manager
...
Jan 09 07:53:25 gold222 systemd[1]: Started FBOSS Platform Manager.
Jan 09 07:53:25 gold222 platform_manager[1112]: I0109 07:53:25.284380  1112 PlatformNameLib.cpp:56] Getting platform na
me from bios using dmidecode ...
Jan 09 07:53:25 gold222 platform_manager[1112]: I0109 07:53:25.286804  1112 PlatformNameLib.cpp:65] Platform name infer
red from bios: NH-4010
Jan 09 07:53:25 gold222 platform_manager[1112]: I0109 07:53:25.286823  1112 PlatformNameLib.cpp:67] Platform name mappe
d: NH-4010

…rvice for FBOSS platform_manager

<!-- Thanks for submitting a pull request! We appreciate you spending
the time to work on these changes. Please provide enough information so
that others can review your pull request. -->

**Pre-submission checklist**
- [x] I've ran the linters locally and fixed lint errors related to the
files I modified in this PR. You can install the linters by running `pip
install -r requirements-dev.txt && pre-commit install`
- [x] `pre-commit run`

Upgraded FBOSS Distro to support systemd services and add `systemd`
service integration for `platform_manager` to enable automatic startup
on boot.

<!-- Explain the motivation for making this change and any other context
that you think would help reviewers of your code. What existing problem
does the pull request solve? -->

- Add `services/platform_manager.service` systemd unit file
- Update `build_image_in_container.sh` to copy service files from
`services/` directory to the root overlay
- Update `config.sh` to enable `platform_manager.service` during image
build

<!-- Demonstrate the code is solid. Example: The exact commands you ran
and their output, screenshots / videos if the pull request changes the
user interface. How exactly did you verify that your PR solves the issue
you wanted to solve? -->

- Built PXE and ONIE images successfully
- Verified service installs and enables correctly
- Confirmed journald logging works

<!-- If a relevant Github issue exists for this PR, please make sure you
link that issue to this PR -->

```
[root@gold222 ~]# systemctl status platform_manager.service
platform_manager.service - FBOSS Platform Manager
     Loaded: loaded (/usr/lib/systemd/system/platform_manager.service; enabled; preset: disabled)
```

```
[root@gold222 fboss]# journalctl -u platform_manager
...
Jan 09 07:53:25 gold222 systemd[1]: platform_manager.service: Scheduled restart job, restart counter is at 5.
Jan 09 07:53:25 gold222 systemd[1]: Stopped FBOSS Platform Manager.
Jan 09 07:53:25 gold222 systemd[1]: Started FBOSS Platform Manager.
Jan 09 07:53:25 gold222 platform_manager[1112]: I0109 07:53:25.284380  1112 PlatformNameLib.cpp:56] Getting platform na
me from bios using dmidecode ...
Jan 09 07:53:25 gold222 platform_manager[1112]: I0109 07:53:25.286804  1112 PlatformNameLib.cpp:65] Platform name infer
red from bios: NH-4010
Jan 09 07:53:25 gold222 platform_manager[1112]: I0109 07:53:25.286823  1112 PlatformNameLib.cpp:67] Platform name mappe
d: NH-4010
```
@meta-cla meta-cla bot added the CLA Signed label Jan 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant