ATTN: Start attention handler AFTER fsi scan
Load the attention handler after the fsi scan and stop the attention
handler when the host stops. This to make sure the attention handler is
able to successfully read cfam data using the libpdbg library.
Signed-off-by: Ben Tyner <ben.tyner@ibm.com>
Change-Id: Ia710e0ff29c81bae172ddf7aed06d4014aafc793
diff --git a/attn/attn_handler.service b/attn/attn_handler.service
index 43d3db7..5298eca 100644
--- a/attn/attn_handler.service
+++ b/attn/attn_handler.service
@@ -3,10 +3,13 @@
Wants=obmc-mapper.target
After=obmc-mapper.target
After=mapper-wait@-xyz-openbmc_project-logging.service
+After=fsi-scan@0.service
+After=op-cfam-reset.service
+Conflicts=obmc-host-stop@0.target
[Service]
ExecStart=/usr/bin/openpower-hw-diags --daemon
Restart=on-failure
[Install]
-WantedBy=multi-user.target
+WantedBy=obmc-host-startmin@0.target