Stop ATTN service before instruction stop
Ensuring that ATTN service is stopped after PHYP has completed the power
off process. PHYP must be done before starting instruction stop. So that
is a good target to use.
ATTN service will not be stopped in the MPIPL case since the instruction
stop service is not used. We need to explicitly restart ATTN service in
MPIPL continue so that attention interrupts with no active attention
sources get cleared.
Tested: Verified on graceful shutdown that attention handler service was
stopped after soft-off app had finished (perform graceful shutdown).
Verified that following an MPIPL attention handler would service
attentions (inject error following MPIPL completion).
Change-Id: I52fb75a0bbfa48c714850aa2d3ed9229179cceea
Signed-off-by: Zane Shelley <zshelle@us.ibm.com>
Signed-off-by: Ben Tyner <ben.tyner@ibm.com>
diff --git a/service_files/op-stop-instructions@.service.in b/service_files/op-stop-instructions@.service.in
index 78184e2..22e3f51 100644
--- a/service_files/op-stop-instructions@.service.in
+++ b/service_files/op-stop-instructions@.service.in
@@ -12,6 +12,7 @@
RemainAfterExit=yes
Type=oneshot
TimeoutStartSec=20
+ExecStart=/bin/systemctl stop attn_handler.service
ExecStart=/usr/bin/openpower-proc-control threadStopAll
[Install]