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 |
| 15 | ExecStart=/usr/bin/phosphor-discover-system-state --host %i |
| 16 | |
| 17 | [Install] |
| 18 | WantedBy=multi-user.target |