1[Unit]
2Description=Set Chassis state to transition to on
3Before=obmc-power-start@%i.service
4Wants=mapper-wait@-xyz-openbmc_project-state-chassis%i.service
5After=mapper-wait@-xyz-openbmc_project-state-chassis%i.service
6Conflicts=obmc-chassis-poweroff@%i.target
7ConditionPathExists=!/run/openbmc/chassis@%i-on
8
9[Service]
10Restart=no
11Type=oneshot
12RemainAfterExit=yes
13SyslogIdentifier=phosphor-set-chassis-transition-to-on
14ExecStart=/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]
17WantedBy=obmc-chassis-poweron@%i.target
18