blob: 2bb601ce84b9b16fce7cc1a65556bf0c5c82c90a [file] [log] [blame]
[Unit]
Description=Start Power%i on
Wants=mapper-wait@-xyz-openbmc_project-Chassis-Control-Power%i.service
After=mapper-wait@-xyz-openbmc_project-Chassis-Control-Power%i.service
Conflicts=obmc-chassis-poweroff@%i.target
ConditionPathExists=!/run/openbmc/chassis@%i-on
[Service]
Type=oneshot
ExecStart=/bin/sh -c "busctl set-property `mapper get-service /xyz/openbmc_project/Chassis/Control/Power%i` \
/xyz/openbmc_project/Chassis/Control/Power%i xyz.openbmc_project.Chassis.Control.Power State i 1"
SyslogIdentifier=intel-power-start
StartLimitInterval=0
[Install]
WantedBy=obmc-host-start@%i.target