Andrew Geissler | 997ed66 | 2017-03-05 20:36:50 -0600 | [diff] [blame] | 1 | [Unit] |
| 2 | Description=Check Chassis%i pgood on reset |
| 3 | Wants=mapper-wait@-org-openbmc-control-power%i.service |
| 4 | After=mapper-wait@-org-openbmc-control-power%i.service |
| 5 | Wants=obmc-power-reset-on@%i.target |
| 6 | Before=obmc-power-reset-on@%i.target |
Josh D. King | b57615e | 2017-04-06 14:43:46 -0500 | [diff] [blame] | 7 | Conflicts=obmc-chassis-poweroff@%i.target |
Andrew Geissler | 997ed66 | 2017-03-05 20:36:50 -0600 | [diff] [blame] | 8 | |
| 9 | [Service] |
| 10 | RemainAfterExit=no |
| 11 | Type=oneshot |
| 12 | ExecStart=/bin/sh -c "busctl get-property `mapper get-service /org/openbmc/control/power%i` /org/openbmc/control/power%i org.openbmc.control.Power pgood | sed 's/i\s*[1]/on/' | grep on" |
| 13 | |
| 14 | |
| 15 | [Install] |
Andrew Geissler | bc253aa | 2017-05-09 15:24:41 -0500 | [diff] [blame] | 16 | WantedBy=obmc-chassis-powerreset@%i.target |