blob: befc892963b845bec63c5a4228d27d68732c9668 [file] [log] [blame]
Brad Bishop3c90f592016-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. Kingb57615e2017-04-06 14:43:46 -05009Conflicts=obmc-chassis-poweroff@%i.target
Andrew Geisslerc4bb5fa2017-03-02 16:25:43 -060010ConditionPathExists=!/run/openbmc/chassis@%i-on
Brad Bishop3c90f592016-08-08 08:53:13 -040011
12[Service]
13RemainAfterExit=yes
Andrew Geissler724486b2017-02-09 15:04:03 -060014Type=oneshot
Brad Bishop3c90f592016-08-08 08:53:13 -040015ExecStart={sbindir}/mapper call /org/openbmc/control/power%i org.openbmc.control.Power setPowerState i 1
16
17[Install]
Josh D. Kinga283e072017-04-06 15:56:37 -050018WantedBy=obmc-host-start@%i.target