Brad Bishop | 7e164be | 2016-08-08 08:53:13 -0400 | [diff] [blame] | 1 | [Unit] |
| 2 | Description=Stop Power%i |
| 3 | Wants=obmc-power-stop@%i.target |
| 4 | Before=obmc-power-stop@%i.target |
Andrew Geissler | 5208dbd | 2017-05-26 17:40:03 -0500 | [diff] [blame] | 5 | Wants=obmc-power-stop-pre@%i.target |
Brad Bishop | 7e164be | 2016-08-08 08:53:13 -0400 | [diff] [blame] | 6 | After=obmc-power-stop-pre@%i.target |
| 7 | Wants=mapper-wait@-org-openbmc-control-power%i.service |
| 8 | After=mapper-wait@-org-openbmc-control-power%i.service |
Josh D. King | b9ee536 | 2017-04-06 14:43:46 -0500 | [diff] [blame] | 9 | Conflicts=obmc-chassis-poweron@%i.target |
Brad Bishop | 7e164be | 2016-08-08 08:53:13 -0400 | [diff] [blame] | 10 | |
| 11 | [Service] |
| 12 | RemainAfterExit=yes |
Brad Bishop | 859b92e | 2018-06-07 16:17:15 -0400 | [diff] [blame] | 13 | ExecStart=/bin/sh -c "busctl call `mapper get-service /org/openbmc/control/power%i` /org/openbmc/control/power%i org.openbmc.control.Power setPowerState i 0" |
| 14 | SyslogIdentifier=op-power-stop |
Brad Bishop | 7e164be | 2016-08-08 08:53:13 -0400 | [diff] [blame] | 15 | |
| 16 | [Install] |
Josh D. King | efb04a1 | 2017-04-06 15:56:37 -0500 | [diff] [blame] | 17 | WantedBy=obmc-host-stop@%i.target |