blob: 6062320b203799c392c5b6bdd3bac3aa0e533d35 [file] [log] [blame]
Andrew Geissler3a206592017-03-23 12:48:06 -05001[Unit]
2Description=Check Host%i status on BMC reset
Andrew Geisslera94faf42017-05-08 15:58:01 -05003Wants=mapper-wait@-xyz-openbmc_project-control-host%i.service
4After=mapper-wait@-xyz-openbmc_project-control-host%i.service
Andrew Geissler3a206592017-03-23 12:48:06 -05005Wants=obmc-host-reset-running@%i.target
6Before=obmc-host-reset-running@%i.target
7Wants=op-reset-chassis-on@%i.service
8After=op-reset-chassis-on@%i.service
Andrew Geissler59b78bf2017-05-15 17:04:46 -05009Conflicts=obmc-host-stop@%i.target
Andrew Geissler3a206592017-03-23 12:48:06 -050010ConditionPathExists=/run/openbmc/chassis@%i-on
11
12[Service]
13RemainAfterExit=yes
14Type=oneshot
Michael Tritzfbd81be2017-08-15 14:07:23 -050015ExecStart=/usr/bin/env phosphor-host-check
16SyslogIdentifier=phosphor-host-check
Andrew Geissler3a206592017-03-23 12:48:06 -050017
18[Install]
19WantedBy=obmc-host-reset@%i.target