blob: 2bb601ce84b9b16fce7cc1a65556bf0c5c82c90a [file] [log] [blame]
Kuiying Wangc8153bc2018-11-09 16:34:33 +08001[Unit]
2Description=Start Power%i on
3Wants=mapper-wait@-xyz-openbmc_project-Chassis-Control-Power%i.service
4After=mapper-wait@-xyz-openbmc_project-Chassis-Control-Power%i.service
5Conflicts=obmc-chassis-poweroff@%i.target
6ConditionPathExists=!/run/openbmc/chassis@%i-on
7
8[Service]
9Type=oneshot
Kuiying Wang6ce6ab42019-01-29 11:10:13 +080010ExecStart=/bin/sh -c "busctl set-property `mapper get-service /xyz/openbmc_project/Chassis/Control/Power%i` \
11 /xyz/openbmc_project/Chassis/Control/Power%i xyz.openbmc_project.Chassis.Control.Power State i 1"
Kuiying Wangc8153bc2018-11-09 16:34:33 +080012SyslogIdentifier=intel-power-start
13StartLimitInterval=0
14
15[Install]
16WantedBy=obmc-host-start@%i.target