summaryrefslogtreecommitdiffstats
path: root/meta-phosphor/common/recipes-phosphor/state/files/phosphor-reset-host-check@.service
blob: 6062320b203799c392c5b6bdd3bac3aa0e533d35 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
[Unit]
Description=Check Host%i status on BMC reset
Wants=mapper-wait@-xyz-openbmc_project-control-host%i.service
After=mapper-wait@-xyz-openbmc_project-control-host%i.service
Wants=obmc-host-reset-running@%i.target
Before=obmc-host-reset-running@%i.target
Wants=op-reset-chassis-on@%i.service
After=op-reset-chassis-on@%i.service
Conflicts=obmc-host-stop@%i.target
ConditionPathExists=/run/openbmc/chassis@%i-on

[Service]
RemainAfterExit=yes
Type=oneshot
ExecStart=/usr/bin/env phosphor-host-check
SyslogIdentifier=phosphor-host-check

[Install]
WantedBy=obmc-host-reset@%i.target
OpenPOWER on IntegriCloud