1*86a1ebf9SAndrew Geissler[Unit]
2*86a1ebf9SAndrew GeisslerDescription=Start Power%i
3*86a1ebf9SAndrew GeisslerWants=obmc-power-start@%i.target
4*86a1ebf9SAndrew GeisslerBefore=obmc-power-start@%i.target
5*86a1ebf9SAndrew GeisslerWants=obmc-power-start-pre@%i.target
6*86a1ebf9SAndrew GeisslerAfter=obmc-power-start-pre@%i.target
7*86a1ebf9SAndrew GeisslerAfter=obmc-fan-control.target
8*86a1ebf9SAndrew GeisslerWants=mapper-wait@-org-openbmc-control-power%i.service
9*86a1ebf9SAndrew GeisslerAfter=mapper-wait@-org-openbmc-control-power%i.service
10*86a1ebf9SAndrew GeisslerConflicts=obmc-chassis-poweroff@%i.target
11*86a1ebf9SAndrew GeisslerConditionPathExists=!/run/openbmc/chassis@%i-on
12*86a1ebf9SAndrew Geissler
13*86a1ebf9SAndrew Geissler[Service]
14*86a1ebf9SAndrew GeisslerRemainAfterExit=yes
15*86a1ebf9SAndrew GeisslerType=oneshot
16*86a1ebf9SAndrew 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"
17*86a1ebf9SAndrew GeisslerSyslogIdentifier=phosphor-power-start
18*86a1ebf9SAndrew Geissler
19*86a1ebf9SAndrew Geissler[Install]
20*86a1ebf9SAndrew GeisslerWantedBy=obmc-host-start@%i.target
21