blob: 8c4d3d3b5b2c8faf2ed18a2c3e6cecae60333a03 [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
6Wants=mapper-wait@-org-openbmc-control-power%i.service
7After=mapper-wait@-org-openbmc-control-power%i.service
Andrew Geisslerfb7fa822017-01-26 08:07:15 -06008Conflicts=obmc-power-chassis-on@%i.target
Brad Bishop3c90f592016-08-08 08:53:13 -04009
10[Service]
11Type=oneshot
12RemainAfterExit=yes
13ExecStart={sbindir}/pgood_wait /org/openbmc/control/power%i off
14
15[Install]
16WantedBy=obmc-chassis-stop@%i.target