Andrew Geissler | 378fe11 | 2022-02-03 16:39:44 -0600 | [diff] [blame^] | 1 | [Unit] |
| 2 | Description=Check chassis power status |
| 3 | Wants=obmc-power-start-pre@%i.target |
| 4 | Before=obmc-power-start-pre@%i.target |
| 5 | Wants=mapper-wait@-xyz-openbmc_project-state-chassis%i.service |
| 6 | After=mapper-wait@-xyz-openbmc_project-state-chassis%i.service |
| 7 | After=op-reset-chassis-on@%i.service |
| 8 | Conflicts=obmc-chassis-poweroff@%i.target |
| 9 | ConditionPathExists=!/run/openbmc/chassis@%i-on |
| 10 | |
| 11 | [Service] |
| 12 | Restart=no |
| 13 | Type=oneshot |
| 14 | RemainAfterExit=yes |
| 15 | ExecStart=/usr/bin/phosphor-chassis-check-power-status --chassis %i |
| 16 | |
| 17 | [Install] |
| 18 | RequiredBy=obmc-chassis-poweron@%i.target |