mpreboot: ensure started after host stopped
Some race conditions have been hit where the enterMpReboot command is
processed before the host is fully stopped.
Change the service dependencies to ensure it is not started until the
host is fully stopped while also ensuring it is executed prior to the
host reboot service starting.
Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
Change-Id: I7bdc2ce407f2212a7e856e6dce275b553c8ec0ab
diff --git a/op-enter-mpreboot@.service.in b/op-enter-mpreboot@.service.in
index 4d39aa0..635328f 100644
--- a/op-enter-mpreboot@.service.in
+++ b/op-enter-mpreboot@.service.in
@@ -1,8 +1,10 @@
[Unit]
Description=Start memory preserving reboot host%i
-Wants=obmc-host-stop-pre@%i.target
-Before=obmc-host-stop-pre@%i.target
+Wants=obmc-host-stopped@%i.target
+After=obmc-host-stopped@%i.target
After=op-stop-instructions@%i.service
+After=phosphor-reset-sensor-states@%i.service
+Before=phosphor-reboot-host@%i.service
Conflicts=obmc-host-startmin@%i.target
[Service]