sonic-buildimage/files/build_templates/pcie-check.timer
Sujin Kang bf45e11d27
Add pcie-check service to check PCIe devices at boot (#4771)
* PCIe Monitor service

* Add rescan to pcie-mon.service when it fails to get all pcie devices

* space

* Clean up

* review comments

* update the pcie status in state db

* update the failed pcie status once at the end

* Update the pcie_status in STATE_DB and rename the service

* Add log to exit the service if the configuration file doesn't exist.

* fix the build failure

* Redo the pcie rescan for pcie-check failed case.

* review comments

* review comments

* review comments
2020-07-13 14:15:09 -07:00

10 lines
153 B
SYSTEMD

[Unit]
Description=Start the pcie-check.service 10 seconds after boot
[Timer]
OnBootSec=10sec
Unit=pcie-check.service
[Install]
WantedBy=timers.target