blob: d6c1ae43c4fa9f3d9dab403b7fe73c0062c1dc4f [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
Andrew Geisslerfb7fa822017-01-26 08:07:15 -06009Conflicts=obmc-power-chassis-off@%i.target
Brad Bishop3c90f592016-08-08 08:53:13 -040010
11[Service]
12RemainAfterExit=yes
Andrew Geissler724486b2017-02-09 15:04:03 -060013Type=oneshot
Brad Bishop3c90f592016-08-08 08:53:13 -040014ExecStart={sbindir}/mapper call /org/openbmc/control/power%i org.openbmc.control.Power setPowerState i 1
15
16[Install]
17WantedBy=obmc-chassis-start@%i.target