blob: 2a461513d807e18ff1972a4eac2271bc4b96d043 [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
Josh D. Kingb57615e2017-04-06 14:43:46 -05007Conflicts=obmc-chassis-poweroff@%i.target
Andrew Geissler997ed662017-03-05 20:36:50 -06008
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