Execute proc-pre-poweroff after proc stop instruction
proc-pre-poweroff service shuts down SBE. This is triggering
stop instruction service failure.
This fix is to move proc-pre-poweroff after stop instruction.
Tested:
- Patched system with service and verified correct order:
Dec 11 08:40:59 system systemd[1]: Starting Stop instructions for host0...
Dec 11 08:41:00 system systemd[1]: Finished Stop instructions for host0.
Dec 11 08:41:00 system systemd[1]: Starting Preparation to poweroff host0...
Dec 11 08:41:00 system systemd[1]: Finished Preparation to poweroff host0.
Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
Change-Id: I9a305f298bd0d02bbfd83a8b6740b8898515c54f
Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
diff --git a/proc-pre-poweroff@.service.in b/proc-pre-poweroff@.service.in
index c665841..ee0fb25 100644
--- a/proc-pre-poweroff@.service.in
+++ b/proc-pre-poweroff@.service.in
@@ -4,6 +4,8 @@
Before=op-cfam-reset.service
Wants=obmc-power-stop-pre@%i.target
Before=obmc-power-stop-pre@%i.target
+Wants=obmc-host-stopped@%i.target
+After=obmc-host-stopped@%i.target
Conflicts=obmc-chassis-poweron@%i.target
[Service]