blob: 075ac500b260e581878ffc7f1527ae86827c9a4a [file] [log] [blame]
Andrew Geissler3a206592017-03-23 12:48:06 -05001[Unit]
2Description=Check Host%i status on BMC reset
Andrew Geissler2d02ee82019-01-14 15:42:09 -06003Wants=phosphor-ipmi-host.service
4After=phosphor-ipmi-host.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