blob: cd4f513a0bc7f2c30df471eac814a9e968629da8 [file] [log] [blame]
Brad Bishop3c90f592016-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. Kingb57615e2017-04-06 14:43:46 -05008Conflicts=obmc-chassis-poweroff@%i.target
Andrew Geisslerc4bb5fa2017-03-02 16:25:43 -06009ConditionPathExists=!/run/openbmc/chassis@%i-on
Brad Bishop3c90f592016-08-08 08:53:13 -040010
11[Service]
12Type=oneshot
13RemainAfterExit=yes
14ExecStart={sbindir}/pgood_wait /org/openbmc/control/power%i on
Dhruvaraj Sa0b2e552017-03-23 05:18:44 -050015TimeoutSec=30
Brad Bishop3c90f592016-08-08 08:53:13 -040016
17[Install]
Josh D. Kinga283e072017-04-06 15:56:37 -050018WantedBy=obmc-host-start@%i.target