Andrew Geissler | c212353 | 2020-01-14 10:39:47 -0600 | [diff] [blame] | 1 | [Unit] |
| 2 | Description=Check Host%i status on BMC reset |
| 3 | Wants=phosphor-ipmi-host.service |
| 4 | After=phosphor-ipmi-host.service |
| 5 | Wants=obmc-host-reset-running@%i.target |
| 6 | Before=obmc-host-reset-running@%i.target |
| 7 | Wants=op-reset-chassis-on@%i.service |
| 8 | After=op-reset-chassis-on@%i.service |
| 9 | Conflicts=obmc-host-stop@%i.target |
| 10 | ConditionPathExists=/run/openbmc/chassis@%i-on |
| 11 | |
| 12 | [Service] |
| 13 | RemainAfterExit=yes |
| 14 | Type=oneshot |
| 15 | ExecStart=/usr/bin/phosphor-host-check |
| 16 | |
| 17 | [Install] |
| 18 | WantedBy=obmc-host-reset@%i.target |