Andrew Geissler | 86a1ebf | 2022-11-10 15:58:30 -0600 | [diff] [blame^] | 1 | [Unit] |
| 2 | Description=Stop Power%i |
| 3 | Wants=obmc-power-stop@%i.target |
| 4 | Before=obmc-power-stop@%i.target |
| 5 | Wants=obmc-power-stop-pre@%i.target |
| 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 |
| 9 | Conflicts=obmc-chassis-poweron@%i.target |
| 10 | |
| 11 | [Service] |
| 12 | RemainAfterExit=yes |
| 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=obmc-power-stop |
| 15 | |
| 16 | [Install] |
| 17 | WantedBy=obmc-host-stop@%i.target |