Brad Bishop | 3c90f59 | 2016-08-08 08:53:13 -0400 | [diff] [blame] | 1 | [Unit] |
| 2 | Description=Wait for Power%i to turn off |
| 3 | Before=obmc-power-off@%i.target |
| 4 | Wants=obmc-power-stop@%i.target |
| 5 | Before=obmc-power-stop@%i.target |
| 6 | Wants=mapper-wait@-org-openbmc-control-power%i.service |
| 7 | After=mapper-wait@-org-openbmc-control-power%i.service |
Josh D. King | b57615e | 2017-04-06 14:43:46 -0500 | [diff] [blame^] | 8 | Conflicts=obmc-chassis-poweron@%i.target |
Brad Bishop | 3c90f59 | 2016-08-08 08:53:13 -0400 | [diff] [blame] | 9 | |
| 10 | [Service] |
| 11 | Type=oneshot |
| 12 | RemainAfterExit=yes |
| 13 | ExecStart={sbindir}/pgood_wait /org/openbmc/control/power%i off |
Andrew Geissler | 7dc1433 | 2017-03-07 13:47:23 -0600 | [diff] [blame] | 14 | ExecStart=/bin/rm -f /run/openbmc/chassis@%i-on |
Brad Bishop | 3c90f59 | 2016-08-08 08:53:13 -0400 | [diff] [blame] | 15 | |
| 16 | [Install] |
| 17 | WantedBy=obmc-chassis-stop@%i.target |