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