Michael Tritz | 1f792e0 | 2017-03-31 12:04:32 -0500 | [diff] [blame] | 1 | [Unit] |
| 2 | Description=Reboot If Enabled |
| 3 | Wants=mapper-wait@-org-openbmc-settings-host%i.service |
| 4 | After=mapper-wait@-org-openbmc-settings-host%i.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 | |
| 10 | [Service] |
| 11 | Restart=no |
| 12 | Type=oneshot |
| 13 | ExecStart={sbindir}/phosphor-discover-system-state --host %i |
| 14 | |
| 15 | [Install] |
| 16 | WantedBy={SYSTEMD_DEFAULT_TARGET} |