Andrew Geissler | c212353 | 2020-01-14 10:39:47 -0600 | [diff] [blame] | 1 | [Unit] |
| 2 | Description=Reboot If Enabled |
| 3 | Wants=mapper-wait@-xyz-openbmc_project-control-host0-power_restore_policy.service |
| 4 | After=mapper-wait@-xyz-openbmc_project-control-host0-power_restore_policy.service |
| 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 |
| 9 | After=op-reset-chassis-on@%i.service |
| 10 | ConditionPathExists=!/run/openbmc/chassis@%i-on |
| 11 | |
| 12 | [Service] |
| 13 | Restart=no |
| 14 | Type=oneshot |
Andrew Geissler | 38b2e14 | 2020-05-06 14:40:34 -0500 | [diff] [blame] | 15 | RemainAfterExit=yes |
Andrew Geissler | c212353 | 2020-01-14 10:39:47 -0600 | [diff] [blame] | 16 | ExecStart=/usr/bin/phosphor-discover-system-state --host %i |
| 17 | |
| 18 | [Install] |
| 19 | WantedBy=multi-user.target |