blob: 4458a4938593ef0ac0ea2e4bfe5514db87f60e85 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
[Unit]
Description=Wait for Power%i to turn on
Wants=obmc-power-start-pre@%i.target
After=obmc-power-start-pre@%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
After=obmc-power-start@%i.service
Conflicts=obmc-chassis-poweroff@%i.target
ConditionPathExists=!/run/openbmc/chassis@%i-on
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/usr/bin/env pgood_wait /org/openbmc/control/power%i on
SyslogIdentifier=pgood_wait
TimeoutSec=30
[Install]
# Installation of templated services occur in bitbake recipes
# Leave it commented out here for documentation purposes
#WantedBy=obmc-host-start@%i.target
|