blob: 11373618b5873d95900065c15cd48ead1b1d9a7b [file] [log] [blame]
Brad Bishop3c90f592016-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 Geissler191400b2017-05-26 17:40:03 -05006Wants=obmc-power-stop-pre@%i.target
7After=obmc-power-stop-pre@%i.target
Brad Bishop3c90f592016-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. Kingb57615e2017-04-06 14:43:46 -050010Conflicts=obmc-chassis-poweron@%i.target
Brad Bishop3c90f592016-08-08 08:53:13 -040011
12[Service]
13Type=oneshot
14RemainAfterExit=yes
Michael Tritzfbd81be2017-08-15 14:07:23 -050015ExecStart=/usr/bin/env pgood_wait /org/openbmc/control/power%i off
16SyslogIdentifier=pgood_wait
Andrew Geissler7dc14332017-03-07 13:47:23 -060017ExecStart=/bin/rm -f /run/openbmc/chassis@%i-on
Andrew Geisslerf9bba792017-05-01 12:46:57 -050018ExecStart=/bin/rm -f /run/openbmc/host@%i-on
Andrew Geissler82d4e112017-05-30 11:29:32 -050019ExecStart=/bin/rm -f /run/openbmc/host@%i-request
Brad Bishop3c90f592016-08-08 08:53:13 -040020
21[Install]
Josh D. Kinga283e072017-04-06 15:56:37 -050022WantedBy=obmc-host-stop@%i.target