summaryrefslogtreecommitdiff
path: root/meta-openbmc-mods/meta-common/recipes-intel/chassis/intel-chassis-control/intel-wait-host-off@.service
blob: eedfcc78ace61695185acda1cb81d4d42390f020 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
[Unit]
Description=Wait for Host%i to turn off
Wants=mapper-wait@-xyz-openbmc_project-Chassis-Control-Power%i.service
After=mapper-wait@-xyz-openbmc_project-Chassis-Control-Power%i.service
#After=obmc-chassis-poweroff@%i.target
Before=intel-wait-power-off@%i.service
After=intel-power-stop@%i.service
Conflicts=obmc-chassis-poweron@%i.target
ConditionPathExists=/run/openbmc/host@%i-on

[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/usr/bin/intel-wait-host-off.sh
ExecStartPost=/bin/sh -c "rm -rf /run/openbmc/host@%i-on"

SyslogIdentifier=intel-wait-host-off
TimeoutSec=30

[Install]
RequiredBy=obmc-host-stop@%i.target