xref: /openbmc/openpower-proc-control/service_files/op-enter-mpreboot@.service.in (revision 69708fbb4be11e132b72a2ca6807abc24b01e9f6)
1[Unit]
2Description=Start memory preserving reboot host%i
3Wants=obmc-host-stop-pre@%i.target
4After=obmc-host-stop-pre@%i.target
5Wants=obmc-host-stopping@%i.target
6Before=obmc-host-stopping@%i.target
7Before=op-stop-instructions@%i.service
8After=phosphor-reset-sensor-states@%i.service
9Before=phosphor-reboot-host@%i.service
10Before=clear_hostdumps_poweroff.service
11After=openpower-update-bios-attr-table.service
12Conflicts=obmc-host-startmin@%i.target
13
14[Service]
15@ENABLE_PHAL_TRUE@Environment="PDBG_DTB=@CEC_DEVTREE_RW_PATH@"
16RemainAfterExit=yes
17Type=oneshot
18ExecStart=/usr/bin/openpower-proc-control enterMpReboot
19ExecStart=/bin/mkdir -p /run/openbmc/
20ExecStart=/bin/touch /run/openbmc/mpreboot@%i
21ExecStart=/bin/sh -c "busctl set-property  xyz.openbmc_project.State.Host /xyz/openbmc_project/state/host%i xyz.openbmc_project.State.Host RestartCause s  xyz.openbmc_project.State.Host.RestartCause.HostCrash"
22
23[Install]
24WantedBy=obmc-host-diagnostic-mode@%i.target
25