1c212353dSAndrew Geissler[Unit]
28e9f24d3SPatrick WilliamsDescription=Reboot Host %i If Enabled
3c328a4cfSPotin LaiWants=mapper-wait@-xyz-openbmc_project-control-host%i-power_restore_policy.service
4c328a4cfSPotin LaiAfter=mapper-wait@-xyz-openbmc_project-control-host%i-power_restore_policy.service
5c212353dSAndrew GeisslerWants=mapper-wait@-xyz-openbmc_project-state-host%i.service
6c212353dSAndrew GeisslerAfter=mapper-wait@-xyz-openbmc_project-state-host%i.service
7c212353dSAndrew GeisslerWants=mapper-wait@-xyz-openbmc_project-state-chassis%i.service
8c212353dSAndrew GeisslerAfter=mapper-wait@-xyz-openbmc_project-state-chassis%i.service
9c328a4cfSPotin LaiWants=mapper-wait@-xyz-openbmc_project-state-bmc0.service
10c328a4cfSPotin LaiAfter=mapper-wait@-xyz-openbmc_project-state-bmc0.service
11b640ec47SAndrew GeisslerAfter=phosphor-reset-chassis-on@%i.service
12d0fa61c5SAndrew GeisslerWants=xyz.openbmc_project.Settings.service
13d0fa61c5SAndrew GeisslerAfter=xyz.openbmc_project.Settings.service
14*1901ab74SDelphine CC ChiuAfter=multi-user.target
15c212353dSAndrew GeisslerConditionPathExists=!/run/openbmc/chassis@%i-on
16c212353dSAndrew Geissler
17c212353dSAndrew Geissler[Service]
18c212353dSAndrew GeisslerRestart=no
19b0986c07SAndrew GeisslerType=simple
2038b2e14dSAndrew GeisslerRemainAfterExit=yes
21c212353dSAndrew GeisslerExecStart=/usr/bin/phosphor-discover-system-state --host %i
22c212353dSAndrew Geissler
23c212353dSAndrew Geissler[Install]
24c212353dSAndrew GeisslerWantedBy=multi-user.target
25