Andrew Geissler | 86a1ebf | 2022-11-10 15:58:30 -0600 | [diff] [blame] | 1 | [Unit] |
Andrew Geissler | 69a250d | 2022-11-10 16:23:04 -0600 | [diff] [blame] | 2 | Description=Start Power Off for Chassis%i |
Andrew Geissler | 86a1ebf | 2022-11-10 15:58:30 -0600 | [diff] [blame] | 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] |
Andrew Geissler | 69a250d | 2022-11-10 16:23:04 -0600 | [diff] [blame] | 17 | WantedBy=obmc-chassis-poweroff@%i.target |