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 On for Chassis%i |
Andrew Geissler | 86a1ebf | 2022-11-10 15:58:30 -0600 | [diff] [blame] | 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] |
Andrew Geissler | 69a250d | 2022-11-10 16:23:04 -0600 | [diff] [blame^] | 20 | WantedBy=obmc-chassis-poweron@%i.target |