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 | b640ec4 | 2023-01-26 14:49:02 -0700 | [diff] [blame] | 11 | After=phosphor-reset-chassis-on@%i.service |
Andrew Geissler | d0fa61c | 2023-01-20 13:48:59 -0700 | [diff] [blame] | 12 | Wants=xyz.openbmc_project.Settings.service |
| 13 | After=xyz.openbmc_project.Settings.service |
Andrew Geissler | c212353 | 2020-01-14 10:39:47 -0600 | [diff] [blame] | 14 | ConditionPathExists=!/run/openbmc/chassis@%i-on |
| 15 | |
| 16 | [Service] |
| 17 | Restart=no |
| 18 | Type=oneshot |
Andrew Geissler | 38b2e14 | 2020-05-06 14:40:34 -0500 | [diff] [blame] | 19 | RemainAfterExit=yes |
Andrew Geissler | c212353 | 2020-01-14 10:39:47 -0600 | [diff] [blame] | 20 | ExecStart=/usr/bin/phosphor-discover-system-state --host %i |
| 21 | |
| 22 | [Install] |
| 23 | WantedBy=multi-user.target |