blob: 1e65d088792ccd390de5ddb5a6367a2479db643f [file] [log] [blame]
Brad Bishop7e164be2016-08-08 08:53:13 -04001[Unit]
2Description=Wait for Power%i to turn on
3Before=obmc-power-on@%i.target
4Wants=obmc-power-start@%i.target
5Before=obmc-power-start@%i.target
6Wants=mapper-wait@-org-openbmc-control-power%i.service
7After=mapper-wait@-org-openbmc-control-power%i.service
Josh D. Kingb9ee5362017-04-06 14:43:46 -05008Conflicts=obmc-chassis-poweroff@%i.target
Andrew Geisslerb8c47702017-03-02 16:25:43 -06009ConditionPathExists=!/run/openbmc/chassis@%i-on
Brad Bishop7e164be2016-08-08 08:53:13 -040010
11[Service]
12Type=oneshot
13RemainAfterExit=yes
Michael Tritz0ad3b1d2017-08-15 14:07:23 -050014ExecStart=/usr/bin/env pgood_wait /org/openbmc/control/power%i on
15SyslogIdentifier=pgood_wait
Dhruvaraj S5a3d0d22017-03-23 05:18:44 -050016TimeoutSec=30
Brad Bishop7e164be2016-08-08 08:53:13 -040017
18[Install]
Josh D. Kingefb04a12017-04-06 15:56:37 -050019WantedBy=obmc-host-start@%i.target