186a1ebf9SAndrew Geissler[Unit]
2*69a250ddSAndrew GeisslerDescription=Start Power On for Chassis%i
386a1ebf9SAndrew GeisslerWants=obmc-power-start@%i.target
486a1ebf9SAndrew GeisslerBefore=obmc-power-start@%i.target
586a1ebf9SAndrew GeisslerWants=obmc-power-start-pre@%i.target
686a1ebf9SAndrew GeisslerAfter=obmc-power-start-pre@%i.target
786a1ebf9SAndrew GeisslerAfter=obmc-fan-control.target
886a1ebf9SAndrew GeisslerWants=mapper-wait@-org-openbmc-control-power%i.service
986a1ebf9SAndrew GeisslerAfter=mapper-wait@-org-openbmc-control-power%i.service
1086a1ebf9SAndrew GeisslerConflicts=obmc-chassis-poweroff@%i.target
1186a1ebf9SAndrew GeisslerConditionPathExists=!/run/openbmc/chassis@%i-on
1286a1ebf9SAndrew Geissler
1386a1ebf9SAndrew Geissler[Service]
1486a1ebf9SAndrew GeisslerRemainAfterExit=yes
1586a1ebf9SAndrew GeisslerType=oneshot
1686a1ebf9SAndrew GeisslerExecStart=/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"
1786a1ebf9SAndrew GeisslerSyslogIdentifier=phosphor-power-start
1886a1ebf9SAndrew Geissler
1986a1ebf9SAndrew Geissler[Install]
20*69a250ddSAndrew GeisslerWantedBy=obmc-chassis-poweron@%i.target
21