blob: 763c11546a344e2f2742725f8f2f33e47f6ff5d2 [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
10ExecStart=/bin/sh -c "busctl call `mapper get-service /xyz/openbmc_project/Chassis/Control/Power%i` \
11 /xyz/openbmc_project/Chassis/Control/Power%i xyz.openbmc_project.Chassis.Control.Power setPowerState i 1"
12SyslogIdentifier=intel-power-start
13StartLimitInterval=0
14
15[Install]
16WantedBy=obmc-host-start@%i.target