blob: 82b7938667b9a06d8163b5256be4d25743becbb6 [file] [log] [blame]
Brad Bishop7e164be2016-08-08 08:53:13 -04001[Unit]
2Description=Start Power%i
3Wants=obmc-power-start@%i.target
4Before=obmc-power-start@%i.target
Andrew Geissleraf236942021-08-12 10:32:41 -04005Wants=obmc-power-start-pre@%i.target
Brad Bishop7e164be2016-08-08 08:53:13 -04006After=obmc-power-start-pre@%i.target
7After=obmc-fan-control.target
8Wants=mapper-wait@-org-openbmc-control-power%i.service
9After=mapper-wait@-org-openbmc-control-power%i.service
Josh D. Kingb9ee5362017-04-06 14:43:46 -050010Conflicts=obmc-chassis-poweroff@%i.target
Andrew Geisslerb8c47702017-03-02 16:25:43 -060011ConditionPathExists=!/run/openbmc/chassis@%i-on
Brad Bishop7e164be2016-08-08 08:53:13 -040012
13[Service]
14RemainAfterExit=yes
Andrew Geissler19c78e22017-02-09 15:04:03 -060015Type=oneshot
Brad Bishop859b92e2018-06-07 16:17:15 -040016ExecStart=/bin/sh -c "busctl call `mapper get-service /org/openbmc/control/power%i` /org/openbmc/control/power%i org.openbmc.control.Power setPowerState i 1"
17SyslogIdentifier=op-power-start
Brad Bishop7e164be2016-08-08 08:53:13 -040018
19[Install]
Josh D. Kingefb04a12017-04-06 15:56:37 -050020WantedBy=obmc-host-start@%i.target