op-reset-host-check: add logging as service dep
When the CFAM registers indicate the host is running, this service logs
an error. Ensure the phosphor logging service is running before starting
this service.
Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
Change-Id: Ie9d6394df805ef4d099bdaaa99afb874e965dcfc
diff --git a/service_files/op-reset-host-check@.service.in b/service_files/op-reset-host-check@.service.in
index 7fd6d67..50d1e90 100644
--- a/service_files/op-reset-host-check@.service.in
+++ b/service_files/op-reset-host-check@.service.in
@@ -2,6 +2,8 @@
Description=Check Host%i status on BMC reset via CFAM reg
Wants=mapper-wait@-xyz-openbmc_project-state-host%i.service
After=mapper-wait@-xyz-openbmc_project-state-host%i.service
+Wants=mapper-wait@-xyz-openbmc_project-logging.service
+After=mapper-wait@-xyz-openbmc_project-logging.service
Wants=obmc-host-reset-running@%i.target
Before=obmc-host-reset-running@%i.target
Wants=op-reset-chassis-on@%i.service