Andrew Geissler | 86a1ebf | 2022-11-10 15:58:30 -0600 | [diff] [blame^] | 1 | [Unit] |
| 2 | Description=Start Power%i |
| 3 | Wants=obmc-power-start@%i.target |
| 4 | Before=obmc-power-start@%i.target |
| 5 | Wants=obmc-power-start-pre@%i.target |
| 6 | After=obmc-power-start-pre@%i.target |
| 7 | After=obmc-fan-control.target |
| 8 | Wants=mapper-wait@-org-openbmc-control-power%i.service |
| 9 | After=mapper-wait@-org-openbmc-control-power%i.service |
| 10 | Conflicts=obmc-chassis-poweroff@%i.target |
| 11 | ConditionPathExists=!/run/openbmc/chassis@%i-on |
| 12 | |
| 13 | [Service] |
| 14 | RemainAfterExit=yes |
| 15 | Type=oneshot |
| 16 | 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 1" |
| 17 | SyslogIdentifier=phosphor-power-start |
| 18 | |
| 19 | [Install] |
| 20 | WantedBy=obmc-host-start@%i.target |