| Andrew Geissler | c212353 | 2020-01-14 10:39:47 -0600 | [diff] [blame] | 1 | [Unit] | 
 | 2 | Description=Reboot If Enabled | 
| Potin Lai | c328a4c | 2022-03-18 23:49:37 +0800 | [diff] [blame] | 3 | Wants=mapper-wait@-xyz-openbmc_project-control-host%i-power_restore_policy.service | 
 | 4 | After=mapper-wait@-xyz-openbmc_project-control-host%i-power_restore_policy.service | 
| Andrew Geissler | c212353 | 2020-01-14 10:39:47 -0600 | [diff] [blame] | 5 | Wants=mapper-wait@-xyz-openbmc_project-state-host%i.service | 
 | 6 | After=mapper-wait@-xyz-openbmc_project-state-host%i.service | 
 | 7 | Wants=mapper-wait@-xyz-openbmc_project-state-chassis%i.service | 
 | 8 | After=mapper-wait@-xyz-openbmc_project-state-chassis%i.service | 
| Potin Lai | c328a4c | 2022-03-18 23:49:37 +0800 | [diff] [blame] | 9 | Wants=mapper-wait@-xyz-openbmc_project-state-bmc0.service | 
 | 10 | After=mapper-wait@-xyz-openbmc_project-state-bmc0.service | 
| Andrew Geissler | c212353 | 2020-01-14 10:39:47 -0600 | [diff] [blame] | 11 | After=op-reset-chassis-on@%i.service | 
 | 12 | ConditionPathExists=!/run/openbmc/chassis@%i-on | 
 | 13 |  | 
 | 14 | [Service] | 
 | 15 | Restart=no | 
 | 16 | Type=oneshot | 
| Andrew Geissler | 38b2e14 | 2020-05-06 14:40:34 -0500 | [diff] [blame] | 17 | RemainAfterExit=yes | 
| Andrew Geissler | c212353 | 2020-01-14 10:39:47 -0600 | [diff] [blame] | 18 | ExecStart=/usr/bin/phosphor-discover-system-state --host %i | 
 | 19 |  | 
 | 20 | [Install] | 
 | 21 | WantedBy=multi-user.target |