174d7a552SThang Tran[Unit]
274d7a552SThang TranDescription=Set Chassis state to transition to on
374d7a552SThang TranBefore=obmc-power-start@%i.service
474d7a552SThang TranWants=mapper-wait@-xyz-openbmc_project-state-chassis%i.service
574d7a552SThang TranAfter=mapper-wait@-xyz-openbmc_project-state-chassis%i.service
674d7a552SThang TranConflicts=obmc-chassis-poweroff@%i.target
774d7a552SThang TranConditionPathExists=!/run/openbmc/chassis@%i-on
874d7a552SThang Tran
974d7a552SThang Tran[Service]
1074d7a552SThang TranRestart=no
1174d7a552SThang TranType=oneshot
12*08148283SAndrew GeisslerRemainAfterExit=yes
1374d7a552SThang TranSyslogIdentifier=phosphor-set-chassis-transition-to-on
1474d7a552SThang TranExecStart=/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"
1574d7a552SThang Tran
1674d7a552SThang Tran[Install]
1774d7a552SThang TranWantedBy=obmc-chassis-poweron@%i.target
18