xref: /openbmc/phosphor-state-manager/service_files/phosphor-reset-host-recovery@.service (revision 5f8e04a6e169121599b6e1e054900fffd1a42a39)
1*5f8e04a6SAndrew Geissler[Unit]
2*5f8e04a6SAndrew GeisslerDescription=Recover host%i after bmc reboot
3*5f8e04a6SAndrew GeisslerAfter=obmc-host-reset@%i.target
4*5f8e04a6SAndrew GeisslerWants=obmc-host-reset-running@%i.target
5*5f8e04a6SAndrew GeisslerAfter=obmc-host-reset-running@%i.target
6*5f8e04a6SAndrew GeisslerWants=mapper-wait@-xyz-openbmc_project-state-host%i.service
7*5f8e04a6SAndrew GeisslerAfter=mapper-wait@-xyz-openbmc_project-state-host%i.service
8*5f8e04a6SAndrew GeisslerConditionPathExists=/run/openbmc/chassis@%i-on
9*5f8e04a6SAndrew GeisslerConditionPathExists=!/run/openbmc/host@%i-on
10*5f8e04a6SAndrew GeisslerConflicts=obmc-chassis-poweroff@%i.target
11*5f8e04a6SAndrew Geissler
12*5f8e04a6SAndrew Geissler[Service]
13*5f8e04a6SAndrew GeisslerRestart=no
14*5f8e04a6SAndrew GeisslerType=simple
15*5f8e04a6SAndrew GeisslerRemainAfterExit=yes
16*5f8e04a6SAndrew GeisslerExecStart=/usr/bin/phosphor-host-reset-recovery
17*5f8e04a6SAndrew Geissler
18*5f8e04a6SAndrew Geissler
19*5f8e04a6SAndrew Geissler[Install]
20*5f8e04a6SAndrew GeisslerWantedBy=obmc-chassis-poweron@%i.target
21