blob: cec36fe1dc6b3df578d699b0f9afd8501fb0a65b [file] [log] [blame]
Andrew Geissler5f8e04a2021-08-12 15:51:41 -04001[Unit]
2Description=Recover host%i after bmc reboot
3After=obmc-host-reset@%i.target
4Wants=obmc-host-reset-running@%i.target
5After=obmc-host-reset-running@%i.target
6Wants=mapper-wait@-xyz-openbmc_project-state-host%i.service
7After=mapper-wait@-xyz-openbmc_project-state-host%i.service
8ConditionPathExists=/run/openbmc/chassis@%i-on
9ConditionPathExists=!/run/openbmc/host@%i-on
10Conflicts=obmc-chassis-poweroff@%i.target
11
12[Service]
13Restart=no
14Type=simple
15RemainAfterExit=yes
16ExecStart=/usr/bin/phosphor-host-reset-recovery
17
18
19[Install]
20WantedBy=obmc-chassis-poweron@%i.target