blob: 1321c215e43c88394467dacc984e2a0fb9bf1b51 [file] [log] [blame]
Brad Bishop3c90f592016-08-08 08:53:13 -04001[Unit]
2Description=Stop Power%i
3Wants=obmc-power-stop@%i.target
4Before=obmc-power-stop@%i.target
Andrew Geissler191400b2017-05-26 17:40:03 -05005Wants=obmc-power-stop-pre@%i.target
Brad Bishop3c90f592016-08-08 08:53:13 -04006After=obmc-power-stop-pre@%i.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-poweron@%i.target
Brad Bishop3c90f592016-08-08 08:53:13 -040010
11[Service]
12RemainAfterExit=yes
Michael Tritzfbd81be2017-08-15 14:07:23 -050013ExecStart=/usr/bin/env mapper call /org/openbmc/control/power%i org.openbmc.control.Power setPowerState i 0
14SyslogIdentifier=mapper
Brad Bishop3c90f592016-08-08 08:53:13 -040015
16[Install]
Josh D. Kinga283e072017-04-06 15:56:37 -050017WantedBy=obmc-host-stop@%i.target