Thang Tran | 74d7a55 | 2023-11-14 13:35:50 +0700 | [diff] [blame] | 1 | [Unit] |
| 2 | Description=Set Chassis state to transition to on |
| 3 | Before=obmc-power-start@%i.service |
| 4 | Wants=mapper-wait@-xyz-openbmc_project-state-chassis%i.service |
| 5 | After=mapper-wait@-xyz-openbmc_project-state-chassis%i.service |
| 6 | Conflicts=obmc-chassis-poweroff@%i.target |
| 7 | ConditionPathExists=!/run/openbmc/chassis@%i-on |
| 8 | |
| 9 | [Service] |
| 10 | Restart=no |
| 11 | Type=oneshot |
Andrew Geissler | 0814828 | 2024-10-08 14:45:23 -0400 | [diff] [blame] | 12 | RemainAfterExit=yes |
Thang Tran | 74d7a55 | 2023-11-14 13:35:50 +0700 | [diff] [blame] | 13 | SyslogIdentifier=phosphor-set-chassis-transition-to-on |
| 14 | ExecStart=/bin/sh -c "busctl set-property `mapper get-service /xyz/openbmc_project/state/chassis%i` /xyz/openbmc_project/state/chassis%i xyz.openbmc_project.State.Chassis CurrentPowerState s xyz.openbmc_project.State.Chassis.PowerState.TransitioningToOn" |
| 15 | |
| 16 | [Install] |
| 17 | WantedBy=obmc-chassis-poweron@%i.target |