Andrew Geissler | c212353 | 2020-01-14 10:39:47 -0600 | [diff] [blame] | 1 | [Unit] |
Patrick Williams | 8e9f24d | 2024-02-23 19:21:03 -0600 | [diff] [blame] | 2 | Description=Reboot Host %i 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 |
Delphine CC Chiu | 1901ab7 | 2024-05-09 15:33:58 +0800 | [diff] [blame] | 14 | After=multi-user.target |
Andrew Geissler | c212353 | 2020-01-14 10:39:47 -0600 | [diff] [blame] | 15 | ConditionPathExists=!/run/openbmc/chassis@%i-on |
| 16 | |
| 17 | [Service] |
| 18 | Restart=no |
Andrew Geissler | b0986c0 | 2023-05-31 13:37:51 -0400 | [diff] [blame] | 19 | Type=simple |
Andrew Geissler | 38b2e14 | 2020-05-06 14:40:34 -0500 | [diff] [blame] | 20 | RemainAfterExit=yes |
Andrew Geissler | c212353 | 2020-01-14 10:39:47 -0600 | [diff] [blame] | 21 | ExecStart=/usr/bin/phosphor-discover-system-state --host %i |
| 22 | |
| 23 | [Install] |
| 24 | WantedBy=multi-user.target |