blob: 1c85fc1b94011bee87916860ad34db3501e7a044 [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
14ExecStart={sbindir}/pgood_wait /org/openbmc/control/power%i on
Dhruvaraj S5a3d0d22017-03-23 05:18:44 -050015TimeoutSec=30
Brad Bishop7e164be2016-08-08 08:53:13 -040016
17[Install]
18WantedBy=obmc-chassis-start@%i.target