blob: b0095371f7140874a32045c12fe15637873ae6ba [file] [log] [blame]
Andrew Geissler997ed662017-03-05 20:36:50 -06001[Unit]
2Description=Check Chassis%i pgood on reset
3Wants=mapper-wait@-org-openbmc-control-power%i.service
4After=mapper-wait@-org-openbmc-control-power%i.service
5Wants=obmc-power-reset-on@%i.target
6Before=obmc-power-reset-on@%i.target
7Conflicts=obmc-power-chassis-off@%i.target
8
9[Service]
10RemainAfterExit=no
11Type=oneshot
12ExecStart=/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]
16WantedBy=obmc-chassis-reset@%i.target