blob: cd4f513a0bc7f2c30df471eac814a9e968629da8 [file] [log] [blame]
[Unit]
Description=Wait for Power%i to turn on
Before=obmc-power-on@%i.target
Wants=obmc-power-start@%i.target
Before=obmc-power-start@%i.target
Wants=mapper-wait@-org-openbmc-control-power%i.service
After=mapper-wait@-org-openbmc-control-power%i.service
Conflicts=obmc-chassis-poweroff@%i.target
ConditionPathExists=!/run/openbmc/chassis@%i-on
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart={sbindir}/pgood_wait /org/openbmc/control/power%i on
TimeoutSec=30
[Install]
WantedBy=obmc-host-start@%i.target