1[Unit]
2Description=Start Power On for Chassis%i
3Wants=obmc-power-start@%i.target
4Before=obmc-power-start@%i.target
5Wants=obmc-power-start-pre@%i.target
6After=obmc-power-start-pre@%i.target
7After=obmc-fan-control.target
8Wants=mapper-wait@-org-openbmc-control-power%i.service
9After=mapper-wait@-org-openbmc-control-power%i.service
10Conflicts=obmc-chassis-poweroff@%i.target
11ConditionPathExists=!/run/openbmc/chassis@%i-on
12
13[Service]
14RemainAfterExit=yes
15Type=oneshot
16ExecStart=/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"
17SyslogIdentifier=phosphor-power-start
18
19[Install]
20WantedBy=obmc-chassis-poweron@%i.target
21