Force PSUSensors to start after EntityManager
PSUSensors would start before EntityManager. This would cause an
issue where PSUSensors would not be able to find the EntityManager
service and as a result fail sensor creation.
Tested: Reboot BMC, observed that PSUSensors started up after
EntityManager instead of before
Change-Id: I17a646038e923c37639d171eecbf1bee2d9fdc77
Signed-off-by: Jason Ling <jasonling@google.com>
diff --git a/service_files/xyz.openbmc_project.psusensor.service b/service_files/xyz.openbmc_project.psusensor.service
index ec4a56b..02cdff2 100644
--- a/service_files/xyz.openbmc_project.psusensor.service
+++ b/service_files/xyz.openbmc_project.psusensor.service
@@ -1,7 +1,8 @@
[Unit]
Description=PSU Sensor
StopWhenUnneeded=false
-
+Requires=xyz.openbmc_project.EntityManager.service
+After=xyz.openbmc_project.EntityManager.service
[Service]
Restart=always
RestartSec=5