blob: c1de92f3b2b9a19ca5593e2952d95133ee2aa418 [file] [log] [blame]
Brad Bishop7e164be2016-08-08 08:53:13 -04001[Unit]
2Description=Start Power%i
3Wants=obmc-power-start@%i.target
4Before=obmc-power-start@%i.target
5After=obmc-power-start-pre@%i.target
6After=obmc-fan-control.target
7Wants=mapper-wait@-org-openbmc-control-power%i.service
8After=mapper-wait@-org-openbmc-control-power%i.service
Josh D. Kingb9ee5362017-04-06 14:43:46 -05009Conflicts=obmc-chassis-poweroff@%i.target
Andrew Geisslerb8c47702017-03-02 16:25:43 -060010ConditionPathExists=!/run/openbmc/chassis@%i-on
Brad Bishop7e164be2016-08-08 08:53:13 -040011
12[Service]
13RemainAfterExit=yes
Andrew Geissler19c78e22017-02-09 15:04:03 -060014Type=oneshot
Brad Bishop859b92e2018-06-07 16:17:15 -040015ExecStart=/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"
16SyslogIdentifier=op-power-start
Brad Bishop7e164be2016-08-08 08:53:13 -040017
18[Install]
Josh D. Kingefb04a12017-04-06 15:56:37 -050019WantedBy=obmc-host-start@%i.target