blob: a21f012683ea0d593e1f853348608c6069d259a7 [file] [log] [blame]
Andrew Geissler86a1ebf2022-11-10 15:58:30 -06001[Unit]
Andrew Geissler69a250d2022-11-10 16:23:04 -06002Description=Start Power On for Chassis%i
Andrew Geissler86a1ebf2022-11-10 15:58:30 -06003Wants=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]
Andrew Geissler69a250d2022-11-10 16:23:04 -060020WantedBy=obmc-chassis-poweron@%i.target