blob: ea975ea21a4753364146370fb6665d6f4b23e29e [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]
Andrew Geisslerbc253aa2017-05-09 15:24:41 -050016WantedBy=obmc-chassis-powerreset@%i.target