blob: 5407b5a832220c287a0cbacd4966321e161587ec [file] [log] [blame]
Dhruvaraj Subhashchandran3506c182020-02-18 05:28:39 -06001[Unit]
2Description=Start memory preserving reboot host%i
Andrew Geissler99ee5ca2021-02-04 13:27:06 -06003Wants=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
Andrew Geisslerf7f3f4a2020-10-12 10:19:22 -05007Before=op-stop-instructions@%i.service
Andrew Geissler54d1b132020-09-30 11:18:58 -05008After=phosphor-reset-sensor-states@%i.service
9Before=phosphor-reboot-host@%i.service
Dhruvaraj Subhashchandran750f9222022-02-24 06:19:35 -060010Before=clear_hostdumps_poweroff.service
Adriana Kobylakbbb53392022-02-14 21:15:48 +000011After=openpower-update-bios-attr-table.service
Dhruvaraj Subhashchandran3506c182020-02-18 05:28:39 -060012Conflicts=obmc-host-startmin@%i.target
13
14[Service]
Adriana Kobylakbbb53392022-02-14 21:15:48 +000015@ENABLE_PHAL_TRUE@Environment="PDBG_DTB=@CEC_DEVTREE_RW_PATH@"
Dhruvaraj Subhashchandran3506c182020-02-18 05:28:39 -060016RemainAfterExit=yes
17Type=oneshot
Andrew Geissler9ca8a112022-04-07 16:18:47 -050018ExecStart=/bin/sh -c \
19 "busctl set-property xyz.openbmc_project.BIOSConfigManager \
20 /xyz/openbmc_project/bios_config/manager xyz.openbmc_project.BIOSConfig.Manager \
Andrew Geissler03eaa3e2022-05-02 15:27:19 -040021 PendingAttributes a{s\\(sv\\)} 1 pvm_sys_dump_active \
Andrew Geisslerf2e53722022-05-03 11:18:06 -040022 xyz.openbmc_project.BIOSConfig.Manager.AttributeType.Enumeration s Enabled" \
23 || true
Andrew Geissler67513c12022-04-26 16:55:59 -040024ExecStart=/bin/sh -c \
25 "busctl call xyz.openbmc_project.Dump.Manager /xyz/openbmc_project/dump/bmc \
26 xyz.openbmc_project.Dump.Create CreateDump a{sv} 0" || true
Dhruvaraj Subhashchandran3506c182020-02-18 05:28:39 -060027ExecStart=/usr/bin/openpower-proc-control enterMpReboot
Dhruvaraj Subhashchandran5e9a59f2020-03-17 12:49:17 -050028ExecStart=/bin/mkdir -p /run/openbmc/
29ExecStart=/bin/touch /run/openbmc/mpreboot@%i
Andrew Geisslerb5fa9422021-12-03 14:45:40 -060030ExecStart=/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"
Dhruvaraj Subhashchandran3506c182020-02-18 05:28:39 -060031
32[Install]
33WantedBy=obmc-host-diagnostic-mode@%i.target