blob: 11373618b5873d95900065c15cd48ead1b1d9a7b [file] [log] [blame]
Brad Bishop7e164be2016-08-08 08:53:13 -04001[Unit]
2Description=Wait for Power%i to turn off
3Before=obmc-power-off@%i.target
4Wants=obmc-power-stop@%i.target
5Before=obmc-power-stop@%i.target
Andrew Geissler5208dbd2017-05-26 17:40:03 -05006Wants=obmc-power-stop-pre@%i.target
7After=obmc-power-stop-pre@%i.target
Brad Bishop7e164be2016-08-08 08:53:13 -04008Wants=mapper-wait@-org-openbmc-control-power%i.service
9After=mapper-wait@-org-openbmc-control-power%i.service
Josh D. Kingb9ee5362017-04-06 14:43:46 -050010Conflicts=obmc-chassis-poweron@%i.target
Brad Bishop7e164be2016-08-08 08:53:13 -040011
12[Service]
13Type=oneshot
14RemainAfterExit=yes
Michael Tritz0ad3b1d2017-08-15 14:07:23 -050015ExecStart=/usr/bin/env pgood_wait /org/openbmc/control/power%i off
16SyslogIdentifier=pgood_wait
Andrew Geissler579c8e02017-03-07 13:47:23 -060017ExecStart=/bin/rm -f /run/openbmc/chassis@%i-on
Andrew Geissler053a5f42017-05-01 12:46:57 -050018ExecStart=/bin/rm -f /run/openbmc/host@%i-on
Andrew Geissleraa8daff2017-05-30 11:29:32 -050019ExecStart=/bin/rm -f /run/openbmc/host@%i-request
Brad Bishop7e164be2016-08-08 08:53:13 -040020
21[Install]
Josh D. Kingefb04a12017-04-06 15:56:37 -050022WantedBy=obmc-host-stop@%i.target